现在的位置: 首页 > 综合 > 正文

Ubuntu下启动/重启/停止apache服务器

2019年06月06日 ⁄ 综合 ⁄ 共 285字 ⁄ 字号 评论关闭

Task: Start Apache 2 Server /启动apache服务

# /etc/init.d/apache2 start

or

$ sudo /etc/init.d/apache2 start

Task: Restart Apache 2 Server /重启apache服务

# /etc/init.d/apache2 restart

or

$ sudo /etc/init.d/apache2 restart

Task: Stop Apache 2 Server /停止apache服务

# /etc/init.d/apache2 stop

or

$ sudo /etc/init.d/apache2 stop

工欲善其事,必先利其器。

抱歉!评论已关闭.