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 搞定, 又是跌跌撞撞的一天天阿。

留言

這個網誌中的熱門文章

Windows 「指定的檔名無效或太長,請指定其他檔名」

Ubuntu 22.04 Rsync自動異地同步

金旭系統 票卷異常查修