In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-08 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.