ubuntu 18.04 increase max nu op

2019-03-29  本文已影响0人  siyongshuai

edit user.conf and system.conf

added this line to /etc/systemd/user.conf  and /etc/systemd/system.conf

DefaultLimitNOFILE=65536

Change /etc/security/limits.conf

* hard nofile 65536

* soft nofile 65536

edit  /etc/pam.d/common-session

added this line to /etc/pam.d/common-session and /etc/pam.d/common-session-noninteractive:

session required pam_limits.so

上一篇 下一篇

猜你喜欢

热点阅读