• 请不要在回答技术问题时复制粘贴 AI 生成的内容
webjin
V2EX  ›  程序员

关于 apache 启动的问题?

  •  
  •   webjin · Mar 10, 2014 · 4016 views
    This topic created in 4640 days ago, the information mentioned may be changed or developed.
    我配置了httpd.conf配置文件然后
    service httpd restart 重启,会不成功,报错
    Stopping httpd: [ OK ]
    Starting httpd: httpd: Could not open configuration file /etc/httpd/conf/httpd.conf: Permission denied
    [FAILED]
    然后百度找资料上说 ,非得用 httpd -k restart 命令才能重启。
    能告诉我下httpd -k 是什么机制在工作?
    4 replies  •  1970-01-01 08:00:00 +08:00
    strak47
    strak47
    Mar 10, 2014❤️1
    1
    sudo service httpd restart ? - -
    SoloCompany
    SoloCompany
    Mar 10, 2014 via Android
    2
    试试 apachectl graceful,也许连 sudo 都能省掉?不保证可以喔
    lazycat
    lazycat
    Mar 10, 2014 via Android
    3
    不在意安全问题的话你可以试试 chmod 777 /etc/httpd/conf/httpd.conf
    lu18887
    lu18887
    Mar 11, 2014
    4
    1楼的方法基本可以解决楼主的问题。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1226 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 17:24 · PVG 01:24 · LAX 09:24 · JFK 12:24
    ♥ Do have faith in what you're doing.