linux怎么启动apache


本文摘自PHP中文网,作者藏色散人,侵删。

推荐:【Linux视频教程】

linux怎么启动apache

基本的操作方法:

本文假设你的apahce安装目录为/usr/local/apache2,这些方法适合任何情况

apahce启动命令:

推荐/usr/local/apache2/bin/apachectl start apaceh启动

apache停止命令

/usr/local/apache2/bin/apachectl stop 停止

apache重新启动命令:

/usr/local/apache2/bin/apachectl restart 重启

要在重启 Apache 服务器时不中断当前的连接,则应运行:

/usr/local/sbin/apachectl graceful

如果apache安装成为linux的服务的话,可以用以下命令操作:

service httpd start 启动

service httpd restart 重新启动

service httpd stop 停止服务

Linux系统为Ubuntu

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

1

2

3

# /etc/init.d/apache2 start

or

$ sudo /etc/init.d/apache2 start

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

1

2

3

# /etc/init.d/apache2 restart

or

$ sudo /etc/init.d/apache2 restart

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

1

2

3

# /etc/init.d/apache2 stop

or

$ sudo /etc/init.d/apache2 stop

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

以上就是linux怎么启动apache的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

Apache禁用sslv3的方法

ubuntu怎么重启Apache

win10怎么卸载Apache

Apache可以干什么

Apache同时配置301和https跳转

怎么卸载Apache服务器

Apache是什么意思

配置Apache服务器的默认首页

Apache修改最大并发连接数

怎么打开Apache用abs

更多相关阅读请进入《Apache》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...