Use the following command to view the current maximum number of connections:
# ulimit -n
1024
Modify the following configuration files:
Edit /etc/security/limits.conf
# vi /etc/security/limits.conf
* soft nofile 10240
* hard nofile 10240
* soft nproc 10240
* hard nproc 10240
Add the above content to the configuration file
Edit /etc/pam.d/login
# vi /etc/pam.d/login
session required pam_limits.so
Add the above content
to Save the above, then restart the server , then use ulimit -n
# ulimit -n
10240
Modify the maximum number of connections on CentOS
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326676045&siteId=291194637
Recommended
Ranking