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

猜你喜欢

转载自mathgl.iteye.com/blog/939540