For more information about how to set Linuxulimit-Linux Enterprise Application-Linux server application, see the following. 1) Use the ulimit-a command to view the ulimit settings. You can use the command to directly set the ulimit attribute. However, if you need to set the settings to take effect permanently, you can do the following: vi/etc/security/limits. conf # Add the following line * soft noproc 11000 * hard noproc 11000 * soft nofile 4100 * hard nofile 4100 description: * noproc indicates the maximum number of processes for all users. nofile indicates the maximum number of files opened.
2) enable SSH to accept the Login program Login, so that you can view the ulimit-a resource limits on the ssh client: a, vi/etc/ssh/sshd_config and change the UserLogin value to yes, remove the # annotation from B and restart the sshd service:/etc/init. d/sshd restart
3) modify the environment variable files of all linux users: vi/etc/profile ulimit-u 10000 ulimit-n 4096 ulimit-d unlimited ulimit-m unlimited ulimit-s unlimited ulimit-t unlimited ulimit-v unlimited.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service