Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Linux can modify the maximum number of open files     - Linux server remote user to obtain root privileges prevention (Linux)

- 10 useful Linux command Interview Questions and Answers (Linux)

- Build RubyMine + Ruby On Rails + MySQL development environment under Windows (Server)

- TCP protocol flaw incomplete records (Linux)

- MySQL log from the library than the main library (Database)

- Nodejs complete installation instructions for Express (Linux)

- crontab cause CPU exception Analysis and Processing (Linux)

- Bash How to read a file line by line (Programming)

- Spark read more HBase tables a RDD (Server)

- Formatted output printf command (Programming)

- Java filter (Programming)

- Installation JDK 1.8 under CentOS7 (Linux)

- About AWR More Description (Database)

- Wireless LAN security solutions (Linux)

- The temporary operation of the document mkstemp on Linux (Linux)

- Django url () function Detailed (Programming)

- Security Configuration SQL Server 2000 database tutorial (Linux)

- Use rfkill soft-switching and Bluetooth wireless capabilities in Linux (Linux)

- DM9000 bare Driver Design (Programming)

- How screenshots from the Linux command line (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.

Explanation:
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.
     
         
         
         
  More:      
 
- Let the router be your security barrier against external attack (Linux)
- Linux simple commands (Linux)
- Linux Shell Scripting Interview Question (Linux)
- VMware virtual machine operating system log Error in the RPC receive loop resolve (Linux)
- Android Studio commonly used shortcuts and how to follow the Eclipse Shortcuts (Linux)
- 2 minutes to read large data framework Hadoop and Spark similarities and differences (Server)
- MySQL related statements (CRUD) (SQLyog software) (Database)
- impdp error ORA-31631, ORA-39122 (Database)
- CentOS system Amoeba + MySQL Master-slave configuration (Database)
- Several reasons MySQL garbled (Database)
- ORA-01839 error caused by incorrect system date setting (Database)
- Fun music library in Linux using command line (Linux)
- Python implementation restart the router (Programming)
- DRBD installation configuration, working principle and Recovery (Server)
- Java loop list to solve the problem of Joseph ring (Programming)
- Linux system security mechanisms to share (Linux)
- ACL permissions Linux command (Linux)
- FreeRadius installation process record (Linux)
- C language keywords Comments (Programming)
- Configuring LIDS build Linux kernel security intrusion detection system (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.