linux 下 apache启动、停止、重启命令
2016-04-13 15:41
806 查看
基本的操作方法:
本文假设你的apahce安装目录为/usr/local/apache2,这些方法适合任何情况
apahce启动命令:
推荐/usr/local/apache2/bin/apachectl start apaceh启动
apache停止命令
/usr/local/apache2/bin/apachectlstop 停止
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
本文假设你的apahce安装目录为/usr/local/apache2,这些方法适合任何情况
apahce启动命令:
推荐/usr/local/apache2/bin/apachectl start apaceh启动
apache停止命令
/usr/local/apache2/bin/apachectlstop 停止
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
相关文章推荐
- discuz X3.1+Apache2.2+php-5.2.17+mysql5.6.14+Discuz_X3.1
- Spring错误:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.Bi
- thinkcmf在apache中无法启用rewrite的修改办法
- configure: error: Apache version incompatible with APR version
- python切分apache日志文件
- apache配置中ProxyPassReverse指令的含义
- 在Kafka上创建一个Topic及apache kafka中topic级别配置
- java.lang.ClassCastException: org.apache.taglibs.standard.tlv.JstlCoreTLV cannot be cast to javax.se
- Hive WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated
- ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
- Apache Maven 入门篇(下)
- Apache Maven 入门篇 ( 上 )
- org.apache.commons.lang.StringUtils(StringUtils工具类的常用方法)
- Ubuntu 安装 Authpuppy过程
- Apache2 Install on Ubuntu 14.04
- apache linux环境安装
- 【成功】maven编译 apache falcon0.9源码_RedHat6.4
- Apache Lucene初探
- 如何配置Apache服务器中的虚拟机
- Apache MPM