普通用户的ulimit -n xxxxx cannot modify limit: Operation not permitted的问题

ulimit -n VALUE

 

1. 查看/etc/security/limits.conf

     *           hard    nofile            2048
     *           soft    nproc             2048

 

     确定VALUE是否大于2048。

 

 

2. 先su到root,再从root su到普通用户, 再ulimit -n VALUE 就行了。

你可能感兴趣的:(普通用户的ulimit -n xxxxx cannot modify limit: Operation not permitted的问题)