In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to modify the maximum number of open files in linux", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to modify the maximum number of open files in linux" this article.
Linux has a limit on the maximum number of files that can be opened for each user to log in to the system, which can be seen through ulimit-n, which is usually 1024.
In some cases of concurrency or multithreading, this limitation needs to be broken.
Modify
The first step is to edit / etc/security/limits.conf and make sure it contains the following lines:
* soft nofile 65535 * hard nofile 65535
Here * means all users, but some systems do not recognize them and require specific user names, such as:
Root soft nofile 65535root hard nofile 65535
The second step is to edit the etc/pam.d/login to make sure it looks like the following line:
Session required pam_limits.so
The third step is to log in again from the terminal.
Verification
Use the ulimit-Hn and ulimit-Sn commands to view the current process user's hard and soft limits, respectively.
Or after the current user starts a program, through cat / proc//limits (pid belongs to that process, or the pid of any of its child processes)
The above is all the contents of the article "how to modify the maximum number of open files in linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.