V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
akw2312
V2EX  ›  问与答

centos 6 / debian 7 supervisor 怎樣子都不自啟動

  •  
  •   akw2312 · 2016-02-11 07:06:54 +08:00 · 2382 次点击
    这是一个创建于 2969 天前的主题,其中的信息可能已经有所发展或是发生改变。

    在兩個系統測試下都是如此
    supervisor debian7 是 apt-get 直接安裝的 centos6 是 yum epel 源安裝的
    只要把設置文件的 minfds 拉高開機就不會自啟動 (log 也沒任何東西...)

    echo "fs.file-max = 131072" >> /etc/sysctl.conf
    echo "* soft nofile 131072" >> /etc/security/limits.d/90-nproc.conf
    echo "* hard nofile 131072" >> /etc/security/limits.d/90-nproc.conf
    echo "ulimit -SHn 102400" >> /etc/profile
    echo "session required pam_limits.so" >> /etc/pam.d/su

    ulimit 之類的設置也做了 chkconfig/update-rc.d 都確認過服務有設置好開機自動運行的
    但只要 minfds 拉高他就不自啟動了 求解
    PS: 另外有一台機器是 Debian 8 卻沒這個問題... 在 OpenVZ 底下也不會遇到..

    3 条回复    2016-02-11 09:41:13 +08:00
    aivier
        1
    aivier  
       2016-02-11 08:47:34 +08:00
    systemctl enable supervisord
    akw2312
        2
    akw2312  
    OP
       2016-02-11 09:40:46 +08:00
    @aivier 很明顯開啟了= =
    akw2312
        3
    akw2312  
    OP
       2016-02-11 09:41:13 +08:00
    而且 debian8/centos7 才有 systemctl...
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3242 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 10:51 · PVG 18:51 · LAX 03:51 · JFK 06:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.