change limit in Ubuntu

permanently change limit value needs following steps:

 

sudo nano/etc/pam.d/su

 

add or uncomment

 

session    required   pam_limits.so

 

sudo nano /etc/security/limits.conf

 

add

 

*       soft  nofile   8000                                                    
*       hard  nofile  65000

 

 

 

 

你可能感兴趣的:(ubuntu,Security)