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

来源:互联网 发布:sqlserver常用表 编辑:程序博客网 时间:2024/05/16 13:41

ulimit -n VALUE

 

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

     *           hard    nofile            2048
     *           soft    nproc             2048

 

     确定VALUE是否大于2048。

 

 

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