PHP8.1.21版本已发布
vue8.1.21版本已发布
jquery8.1.21版本已发布

ubuntu怎么重启apache

藏色散人
藏色散人 原创
2019-08-05 11:26:55 4821浏览

ubuntu怎么重启apache?

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

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

更多Apache相关知识,请访问Apache使用教程栏目!

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。