Current maximum open files is 1024. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.即使修改/etc/security/limits.conf也沒有用,這個檔案一開頭就說:
This file sets the resource limits for the users logged in via PAM.因為CentOS 7用systemd換掉ntsysv,
It does not affect resource limits of the system services.
修改之後,要先重新載入systemd,否則會出現警告。如下
$ service redis restart
Redirecting to /bin/systemctl restart redis.service
Warning: Unit file of redis.service changed on disk, 'systemctl daemon-reload' recommended.
沒有留言:
張貼留言