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

    技术2026-04-19  5

    ulimit -n VALUE

     

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

         *           hard    nofile            2048      *           soft    nproc             2048

     

         确定VALUE是否大于2048。

     

     

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

    最新回复(0)