修改 /etc/systemd/user.conf 及 /etc/systemd/system.conf 中如下面这行的配置项(这将处理图形登录):
DefaultLimitNOFILE=65535
修改 /etc/security/limits.conf 中如下面这几行(这将处理非图形登录):
* soft nofile 65535
* hard nofile 65535
要重启系统!
修改 /etc/systemd/user.conf 及 /etc/systemd/system.conf 中如下面这行的配置项(这将处理图形登录):
DefaultLimitNOFILE=65535
修改 /etc/security/limits.conf 中如下面这几行(这将处理非图形登录):
* soft nofile 65535
* hard nofile 65535
要重启系统!