Centos 7 無法重啟服務
Centos 7 無法重啟服務 show
Error:Too many open files
設定
ulimit -n 65535
無效
vim /etc/security/limits.conf
#在最後加入
* soft nofile 65535
* hard nofile 65535
無效
vim /etc/sysctl.conf
fs.file-max = 80000000
fs.inotify.max_user_instances = 65535
fs.inotify.max_user_watches = 65535
存檔
sysctl -p
OK 搞定, 又是跌跌撞撞的一天天阿。
留言
張貼留言