100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > centos 下apache启动 停止 重启命令

centos 下apache启动 停止 重启命令

时间:2018-09-19 07:12:21

相关推荐

centos 下apache启动 停止 重启命令

基本的操作方法

本文假设你的apahce安装目录为/usr/local/apache2,这些方法适合任何情况

#/usr/local/apache2/bin/apachectl start apaceh ##apache启动#/usr/local/apache2/bin/apachectl stop ##apache停止#/usr/local/apache2/bin/apachectl restart ##apache重启#/usr/local/sbin/apachectl graceful ##apache重启服务器时不中断当前的连接

如果apache安装成为linux的服务的话,可以用以下命令操作:

#service httpd start 启动

#service httpd restart 重新启动

#service httpd stop 停止服务

Linux系统为Ubuntu

Start Apache 2 Server /启动apache服务

# /etc/init.d/apache2 start

or

$ sudo /etc/init.d/apache2 start

Restart Apache 2 Server /重启apache服务

# /etc/init.d/apache2 restart

or

$ sudo /etc/init.d/apache2 restart

Stop Apache 2 Server /停止apache服务

# /etc/init.d/apache2 stop

or

$ sudo /etc/init.d/apache2 stop

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。