您现在的位置是:首页 > 其他

李清波 2019-06-04 其他 2732 复制当前网址

Centos下apache启动、停止、重启命令详解


基本操作:


方式一

service httpd start //启动
service httpd restart //重新启动
service httpd stop //停止服务



方式二

/etc/init.d/httpd start
/etc/init.d/httpd stop
/etc/init.d/httpd restart



如果你的apahce安装目录为/usr/local/apache2,那么我们只能用下面的命令来操作了

启动(推荐)

/usr/local/apache2/bin/apachectl start apaceh

停止

/usr/local/apache2/bin/apachectl stop

重新启动:

/usr/local/apache2/bin/apachectl restart


要在重启 Apache 服务器时不中断当前的连接,则应运行:

/usr/local/sbin/apachectl graceful


文章来源:https://www.liqingbo.com/blog-1525.html

评论