Too program open files Solution

Source: Internet
Author: User

Too program open files Solution

Too program open files Solution

1. modify the content of the/etc/security/limits. conf file.

Run the sudo vim/etc/security/limits. conf command to enter the/etc/security/limits. conf file.

Add the following two statements to the/etc/security/limits. conf file, save and exit.

* Soft nofile 655360

* Hard nofile 655360

The asterisk indicates the global, soft indicates the software, hard indicates the hardware, and nofile indicates the number of files that can be opened.

2. modify the content of the/etc/pam. d/login file.

To make the limits. conf file take effect, make sure that the pam_limits.so file is added to the Startup File.

Make sure that the/etc/pam. d/login file contains the following statement.

Session required/lib/security/pam_limits.so

3. You can see the effect after you log on again after the modification. You can view the effect through ulimit-n.

This article permanently updates the link address:

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.