Differences between the maximum number of opened files in Centos and Debian configuration
Source: Internet
Author: User
The difference between Centos & amp; Debian configuration and the maximum number of opened files recently I want to try Debian, and I have installed a 6.0 server. because I need to perform a Web server test, okay... optimized, configure the hard limit and soft limit on the number of opened files: View ulimit & amp; ndash; n: 1024 and then in/etc/security/limits...
The difference between the maximum number of opened files in Centos & Debian configuration recently I want to try Debian, and I have installed a 6.0 server. because I need to do a Web server test, okay...
Optimized, configure the hard limit and soft limit on the number of opened files: View ulimit-n: 1024 and then in/etc/security/limits. set the maximum number of opened files in the conf file. The following is a line prompt: add the following line. * Soft nofile 65535 * hard nofile 65535 www.2cto.com note that "nofile" has two possible restrictions. Is hard and soft under the item. To enable the modified maximum value
The number of files takes effect. These two restrictions must be set. If you use the "-" character, hard and soft settings will be set to restart at the same time... log on and use ulimit-n to check what, how or 1024. Didn't I save it just now ...? Google discovered that, unlike Centos, the Debian system is configured with invalid root account.
It is configured through ssh root login. If the Web server needs to run with the root account, you need to configure the root soft nofile 65535 root hard nofile 65535 separately. However, the root account is generally not used, and you can leave it unspecified.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.