jcwtime
V2EX  ›  问与答

httpd2.4 修改不了 PidFile 路径,求解?

  •  
  •   jcwtime · Mar 3, 2017 · 3136 views
    This topic created in 3357 days ago, the information mentioned may be changed or developed.

    编译后 pidfile 默认在 /usr/local/apache/logs/httpd.pid

    求解, httpd2.4 如何修改 pidfile 路径呢? 这三个都修改了。但 pidfile 还是默认 /usr/local/apache/logs/httpd.pid

    /etc/httpd24/httpd.conf PidFile "/var/run/httpd/httpd24.pid"

    /etc/sysconfig/httpd PIDFILE=/var/run/httpd/httpd24.pid

    /etc/rc.d/init.d/httpd24 pidfile=${PIDFILE-/var/run/httpd/httpd24.pid}

    1 replies    2017-03-03 10:23:25 +08:00
    jcwtime
        1
    jcwtime  
    OP
       Mar 3, 2017
    好吧。自己研究解决了。原来是使用 vhost 的话,也要在 vhost.conf 里面指定 pidfile 路径
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2735 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 15:52 · PVG 23:52 · LAX 08:52 · JFK 11:52
    ♥ Do have faith in what you're doing.