• 请不要在回答技术问题时复制粘贴 AI 生成的内容
kisshere
V2EX  ›  程序员

Ubuntu 设置 ulimit 是不是“*”不起作用?

  •  
  •   kisshere · Mar 17, 2023 · 2115 views
    This topic created in 1237 days ago, the information mentioned may be changed or developed.

    Ubuntu 想设置 ulimit 为 65535 , 编辑 /etc/security/limits.conf

    * soft nproc 65535
    * hard nproc 65535
    * soft nofile 65535
    * hard nofile 65535
    

    保存后,发现根本不生效,但是把星号换成具体用户如 root 、www 等保存后,ulimit 变为 65535 了

    所以 Ubuntu 根本不支持“*”号?如果要设置对所有用户 ulimit 都为 65535 ,该怎么设定?

    unnamedhao
        1
    unnamedhao  
       Mar 17, 2023
    好像 root 不支持*
    xin053
        2
    xin053  
       Mar 17, 2023
    * 不包含 root ,root 要单独指定
    * - nofile 65535
    * - nproc 65535
    root - nofile 65535
    root - nproc 65535
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1032 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 18:58 · PVG 02:58 · LAX 11:58 · JFK 14:58
    ♥ Do have faith in what you're doing.