akw2312
V2EX  ›  问与答

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

  •  
  •   akw2312 · Feb 11, 2016 · 2875 views
    This topic created in 3765 days ago, the information mentioned may be changed or developed.

    在兩個系統測試下都是如此
    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 replies    2016-02-11 09:41:13 +08:00
    aivier
        1
    aivier  
       Feb 11, 2016
    systemctl enable supervisord
    akw2312
        2
    akw2312  
    OP
       Feb 11, 2016
    @aivier 很明顯開啟了= =
    akw2312
        3
    akw2312  
    OP
       Feb 11, 2016
    而且 debian8/centos7 才有 systemctl...
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3234 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 14:05 · PVG 22:05 · LAX 07:05 · JFK 10:05
    ♥ Do have faith in what you're doing.