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

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

  •  
  •   jcwtime · 2017-03-03 09:22:06 +08:00 · 2432 次点击
    这是一个创建于 2612 天前的主题,其中的信息可能已经有所发展或是发生改变。

    编译后 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 条回复    2017-03-03 10:23:25 +08:00
    jcwtime
        1
    jcwtime  
    OP
       2017-03-03 10:23:25 +08:00
    好吧。自己研究解决了。原来是使用 vhost 的话,也要在 vhost.conf 里面指定 pidfile 路径
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1098 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 18:23 · PVG 02:23 · LAX 11:23 · JFK 14:23
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.