Linux下apache的停止、开启、重启

有两种途径

一、

service httpd stop(停止)

service httpd start(开始)

service httpd restart(重启)

这种方法,是系统自带的

 

 

二、

或者到apache的启动目录sbin下执行

默认的执行目录是/usr/sbin/apachectl

执行

/usr/sbin/apachectl stop(停止)

/usr/sbin/apachectl start(开始)

/usr/sbin/apachectl restart(重启)

效果是一样的~

 

posted @ 2013-08-23 09:55  TBHacker  阅读(433)  评论(0编辑  收藏  举报