简体   繁体   中英

How to change ulimit in CentOS6

I am using CentOS6.6 and trying to install HDP2.2

When I do: ulimit -Sn Its value is 1024

When I do: ulimit -Hn Its value is 4096

The recommended maximum number of open file descriptors is 10000 , or more.

I am trying to increase this value. I have checked several link and trying to follow steps but not getting any success. I am looking some help to increase this value.

CentOS is different from RHEL5, you need to modify the file /etc/security/limits.conf , add the follow sentences to the end of file:

*           soft    nofile          655350
*           hard    nofile          655350

then, relogin the system ( very important ). Gook luck.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM