apache重新载入配置文件的命令是什么?

解决方案 »

  1.   

    service httpd restart或者
    ps -aux|grep httpd找到安装路径,然后执行restart即可!
      

  2.   

    什么平台也不说。。
    类UNIX下:
    apachectl restart
      

  3.   

    或者优雅重启:
    apachectl graceful
      

  4.   

    linux:  sudo /etc/init.d/apache2 restart
      

  5.   

    重新读取配置就用apachectl graceful
    看一下优雅重启一节:
    http://lamp.linux.gov.cn/Apache/ApacheMenu/stopping.html
      

  6.   

    ubunut 可以 reload 指令 无需重启apache
      

  7.   

    我用apachectl graceful报下面错误/usr/sbin/apachectl: 148: /usr/sbin/apache2: not found
    Action 'graceful' failed.
    The Apache error log may have more information.我的apache的路径是/usr/local/zend/apache2中的