weifan
V2EX  ›  问与答

求助, ulimit 参数改了无效

  •  
  •   weifan · Mar 15, 2021 · 1339 views
    This topic created in 1912 days ago, the information mentioned may be changed or developed.

    image.png

    这 open files 改了,没效果怎么回事呀,重启了,还是和没改是一样的。* 改为 用户名也一样

    5 replies    2021-03-17 15:04:06 +08:00
    wahulu
        1
    wahulu  
       Mar 15, 2021
    有些是需要直接写在程序启动脚本里面的
    wakzz
        2
    wakzz  
       Mar 15, 2021   ❤️ 2
    * 的作用域是非 root 用户,你如果用的 root,作用域应该是 root,如下

    * soft nofile 65537
    * hard nofile 65537
    root soft nofile 65537
    root hard nofile 65537
    jasonyang9
        3
    jasonyang9  
       Mar 15, 2021
    我记得 init 用 systemd 的会被它接管
    lsylsy2
        4
    lsylsy2  
       Mar 15, 2021
    上面回答过了,root 问题
    感觉五六七八年前我(现在死掉的)博客里写过这事还
    julyclyde
        5
    julyclyde  
       Mar 17, 2021
    看一下 /etc/pam.d/ 里面
    本地登录看 login
    远程登录看 ssh
    文件里有没有调用 pam_limits
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   934 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 21:42 · PVG 05:42 · LAX 14:42 · JFK 17:42
    ♥ Do have faith in what you're doing.