Command:
Ulimit-a is used to display current user process restrictions;
1 Remove the maximum number of processes and maximum file opening limits for Linux systems:
Vi/etc/security/limits.conf
# Add the following line
* Soft Noproc 11000
* Hard Noproc 11000
* Soft Nofile 4100
* Hard Nofile 4100
Description: * For all users, at the beginning of @
Noproc represents the maximum number of processes
Nofile is the maximum number of file open
2 Allow SSH to accept login program login, easy to view ulimit-a resource restrictions on SSH client:
A, Vi/etc/ssh/sshd_config
Change the value of Userlogin to Yes and remove the # annotation
b, restart the SSHD service:
/etc/init.d/sshd restart
3 Modify all Linux users ' environment variable files:
Vi/etc/profile
Ulimit-u 10000
Ulimit-n 4096
Ulimit-d Unlimited
Ulimit-m Unlimited
Ulimit-s Unlimited
Ulimit-t Unlimited
Ulimit-v Unlimited
Reboot the server