For details about linux ulimit modification, refer to general Linux technology-Linux technology and application information. If you encounter a similar error message
Ulimit: max user processes: cannot modify limit: The operation is not allowed.
Ulimit: open files: cannot modify limit: operation not allowed
Why is it possible for root users? Why do common users encounter this problem?
Take a look at/etc/security/limits. conf and you will probably understand it.
Linux has default ulimit restrictions on users. This file can be used to configure users' hard configuration and soft configuration. Hard configuration is an upper limit.
If the modification exceeds the upper limit, an error such as "operation not allowed" will occur.
Add
Soft noproc 10240
Hard noproc 10240
Soft nofile 10240
Hard nofile 10240
Limit the maximum number of threads and files of any user to 10240.
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