The limits.conf file is actually a pam_limits.so configuration file in Linux PAM (plug-in authentication module, pluggable authentication Modules), and only pins for a single session. The limits.conf format is as follows: username| @groupname type Resource limit username| @groupname: Set the user name that needs to be restricted, the group name is preceded by @ and the user name is distinguished. You can also use the wildcard character * to make all user restrictions. Type: There are Soft,hard and-,soft that refer to the setting value that the current system is in effect. The hard indicates the maximum value that can be set in the system. The soft limit cannot be higher than the Har limit. Use-Indicates that both soft and hard values are set. Resource:core-Limit kernel file size date-Maximum data size fsize-Maximum file size Memlock-Maximum locked memory address space Nofile-Maximum number of open files RSS-Maximum persistent setting size Stack-Maximum stack size CPU-MAX CPU time in minutes Noproc-maximum number of processes as-address space limit Maxlogins-the maximum number of users allowed to log in to make limits.conf files match In effect, you must make sure that the pam_limits.so file is added to the startup file. View/etc/pam.d/login files include: Session required/lib/security/pam_limits.so For example: Modify file descriptor Size (65536) vi /etc/ security/limits.conf * soft nofile 65536 * hard nofile 65536
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