linux 下 apache启动、停止、重启命令
来源:互联网 发布:linux切换到指定目录 编辑:程序博客网 时间:2024/05/16 10:09
转自:http://blog.sina.com.cn/s/blog_70ac6bec01018mqs.html
基本的操作方法:
本文假设你的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服务
# /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
- linux 下 apache启动、停止、重启命令
- linux 下 apache启动、停止、重启命令
- linux下apache启动、停止、重启命令
- linux 下 apache启动、停止、重启命令
- linux 下 apache启动、停止、重启命令
- linux 下 apache启动、停止、重启命令
- linux 下 apache启动、停止、重启命令
- linux 下 apache启动、停止、重启命令
- linux 下 apache启动、停止、重启命令
- linux 下 apache启动、停止、重启命令
- linux 下 apache启动、停止、重启命令
- linux 下 apache启动、停止、重启命令
- linux 下 apache启动、停止、重启命令
- linux 下 apache启动、停止、重启命令
- linux 下 apache启动、停止、重启命令
- linux 下 apache启动、停止、重启命令
- linux 下 apache启动、停止、重启命令
- linux 下 apache启动、停止、重启命令
- 安卓开发那点事
- object c_专业名词
- 祝贺CSDN学院成功上线
- HDU 1016 Prime Ring Problem
- 朴素贝叶斯分类算法
- linux 下 apache启动、停止、重启命令
- Qt递归非递归遍历文件
- 对NSArray中自定义的对象进行排序
- highchars多Y轴实现(Jquery post请求)
- BlueDroid代码分析之数据传输过程
- 读入一个句子,把所有词都变成大写,输出,每个词占一行
- 阿里云服务器cent0S安装web环境PHP+MySql+Nginx,给nginx添加网站
- this 指向区分
- TPLINK WR703N刷OPENWRT