您的位置:首页 > 运维架构 > Apache

网站运维:linux 下 apache启动、停止、重启命令

2019-06-18 15:56 3123 查看

1、centos7系统可以用以下命令操作:

sudo service httpd start 启动

sudo service httpd restart 重新启动

sudo service httpd stop 停止服务

2、Ubuntu系统可以用以下命令操作:

2.1、Start Apache 2 Server /启动apache服务

/etc/init.d/apache2 start
or
$ sudo /etc/init.d/apache2 start

2.2、 Restart Apache 2 Server /重启apache服务

/etc/init.d/apache2 restart
or
$ sudo /etc/init.d/apache2 restart

2.3、Stop Apache 2 Server /停止apache服务

/etc/init.d/apache2 stop
or
$ sudo /etc/init.d/apache2 stop

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: