Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Linux can modify the maximum number of open files     - MYSQL root password for the database user passwords are weak attack analysis (Linux)

- CentOS 6.6 running level (Linux)

- Linux System Getting Started Tutorial: permission to permanently modify the USB device in Linux (Linux)

- Apache Tomcat integration and resin (Server)

- Linux system security settings (Linux)

- C ++ Supplements - Virtual Function Principle (Programming)

- Use libcurl library download url image (Programming)

- Oracle 12C with multi-column index (Database)

- How to use jgit to manage Git submodule (Linux)

- CentOS 6.6 compile and install phpMyAdmin configuration PostgreSQL9.4.1 (Database)

- Linux disk quota-related instruction (Linux)

- Using C / C ++ extensions Python (Programming)

- To compile install and test Swift under Linux (Linux)

- List Leaves (Programming)

- Linux system performance analysis and top command ps.pstree Comments (Linux)

- How to monitor Linux system performance Nmon (Linux)

- Using the Linux VNC service (Server)

- RHEL6 install Python and other packages from source (Linux)

- Linux operating system Study Notes (Linux)

- JQuery implements the same content merge cells (Programming)

  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.
- Crawl use Wireshark packet on remote Linux (Linux)
- Upgrading from Fedora 20 to 21 (Linux)
- Linux Security Raiders SSH tools SCP uses examples to explain in detail (Linux)
- Oracle Standby Redo Log experiment (Database)
- Linux Network Security Tips Share (Linux)
- Java learning problems encountered (Programming)
- Tune in high resolution to 1280x800 in Fedora 14 (Linux)
- MySQL Installation Troubleshooting (Database)
- MySQL common functions summary (Database)
- How to make GRub instead of the default Ubuntu software center (Linux)
- Upload the project to GitHub, synchronous remote repository Github (Linux)
- Analysis of native Java keywords (Programming)
- How to contribute code on GitHub uploads (Linux)
- Apache site default home page settings (Server)
- Python in os.path Magical (Programming)
- Linux itself disguised illusion strengthen security (Linux)
- Linux Shell debugging (Programming)
- 64-bit Ubuntu 15.10 How to compile the latest version of the 32 Wine 1.7.53 (Linux)
- Local port forwarding using iptables under linux (Server)
- Spark parquet merge metadata problem (Server)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.