jcwtime
V2EX  ›  问与答

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

  •  
  •   jcwtime · Mar 3, 2017 · 3473 views
    This topic created in 3532 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
    jcwtime
    OP
    Mar 3, 2017
    1
    好吧。自己研究解决了。原来是使用 vhost 的话,也要在 vhost.conf 里面指定 pidfile 路径
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5312 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 01:27 · PVG 09:27 · LAX 17:27 · JFK 20:27
    ♥ Do have faith in what you're doing.