Linux中要重启apache服务与在windows是有很大的区别,下面我们来介绍一下

在Linux中要重启apache服务与在windows是有很大的区别,下面我们来介绍一下常用的命令,需要的朋友参考下吧(http://www.hnkjlb.com

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

以上所述是小编给大家介绍的linux系统下ubuntu重启apache服务命令,希望对大家有所帮助

猜你喜欢

转载自www.cnblogs.com/HanaKana/p/10820792.html