Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Linux can modify the maximum number of open files     - Spark SQL job of a lifetime (Server)

- To install and deploy Java applications under CentOS 6.5 (Linux)

- CentOS How quickly customize kernel binary RPM package (Linux)

- A new method for Linux hidden files (Linux)

- Java method to read and write files summary (Programming)

- Those things packaged using Gradle to Android (Programming)

- Depth understanding of JavaScript new mechanism (Programming)

- Linux Basic Course: tar command description (Linux)

- To delete the directory and all specified files under the Mac (Linux)

- Bash Getopts - let your script supports command line parameters (Linux)

- RHEL 5.7 Yum configure local source [Errno 2] No such file or directory (Linux)

- Vim custom color (Linux)

- Python MySQL database connection (Database)

- Android child thread really do not update UI (Programming)

- Linux file content inspection - cat, tac, no, more, less, head, tail, od (Linux)

- Go powerful development server simple example (Server)

- How to turn Java String into Date (Programming)

- Get the Linux device PCI ID method (Linux)

- Linux firewall settings -DNS server articles (Server)

- Under Ubuntu 15.04 installation JDK8 (Linux)

  Linux can modify the maximum number of open files
  Add Date : 2017-08-31      
  1, Modify the destination
Our goal is: Let the maximum number of files a user logs on every Linux system after the system is open we set good.
But I have to say here is: Unfortunately, a lot of this on-line ulimit settings modify resource limits of the article, but the article did not work.
This goal into two objectives:

1.1, set to take effect for the root user login system
This objective can be achieved not difficult

1.2, set to take effect for all users
This is very troublesome, and will fix your system to the whole bad, because you want to re-compile the Linux kernel for the job!
So on balance, I only achieved the first goal, the second goal because the risk is too great, I think if I knew this before, so I installed the system would do first when I deal with this, but now I I felt it was too late.

2, modify the place

2.1, modify /etc/security/limits.conf
Modify its contents by vi /etc/security/limits.conf, in the final document was added (the value can also define your own):

* Soft nofile = 65536
* Hard nofile = 65536
root soft nofile 65536
root hard nofile 65536
* Indicates that the configuration is valid for all users, root user wants to add two lines in particular.

2.2, edit / etc / profile
By vi / etc / profile modifications added at the end the following

ulimit -n 65536
Then sign back into effect.

In fact, only modify / etc / profile to take effect, but I still recommend to /etc/security/limits.conf also change it.
Finally, to emphasize that, if you want to make changes to take effect for all users, so it seems you have to recompile the Linux kernel job.
- The method of installing software under Ubuntu Linux (Linux)
- With screenfetch linux logo and basic hardware information display with cool Linux logo (Linux)
- ImageMagick Tutorial: How to cut images in Linux command line (Linux)
- Setting Lns firewall against ARP attacks (Linux)
- Linux operating system security settings initial understanding (Linux)
- CentOS7 install and configure Nagios (Server)
- Compile and install Memcached can not find GCC (Programming)
- Forgot Linux root password (Linux)
- To setup the Swift language learning environment under linux (Linux)
- Ubuntu 14.10 installation SecureCRT 7.3 (Linux)
- Ubuntu 14.10 used ifconfig commands to manage your network configuration (Linux)
- Boost-- time and date - (1) timer library introduction (Programming)
- Java study notes: String (Programming)
- ORA-12537: TNS: connection closed error process (Database)
- Linux console password solution (Programming)
- Linux Command Study Notes (Linux)
- mysqldump implement database logical backup (Database)
- hexdump Linux command (Linux)
- MySQL multi-master-slave synchronization (Database)
- Empty password Linux operating system (Linux)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.