找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索本站精品资源

首页 教程频道 服务器运维 查看内容

ubuntu怎么重启apache

作者:模板之家 2019-8-5 11:26 237人关注

Ubuntu下重启apache的方法:通过命令“/etc/init.d/apache2 restart”或者“$ sudo /etc/init.d/apache2 restart”即可重启Apache。

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使用教程栏目!

以上就是ubuntu怎么重启apache的详细内容,更多请关注模板之家(www.mb5.com.cn)其它相关文章!


路过

雷人

握手

鲜花

鸡蛋
来自: [db:来源]

全部回复(0)

发表评论