Centos7.6如何修改句柄數(shù)限制
Centos7.6如何修改句柄數(shù)限制
1.vi /etc/security/limits.conf,輸入該命令按回車鍵執(zhí)行
2.按“i”進(jìn)入插入模式,增加以下內(nèi)容,然后按“ESC”鍵輸入wq按回車鍵保存退出vi編輯。
* soft nofile 65535
* hard nofile 65535
3.sed -i "s/#DefaultLimitNOFILE=/DefaultLimitNOFILE=655350/g" /etc
/systemd/system.conf,輸入該命令按回車鍵執(zhí)行
4.echo 6553560 > /proc/sys/fs/file-max,輸入該命令按回車鍵執(zhí)行。此時(shí)需要重啟系統(tǒng)使設(shè)置生效