linux 下 apache启动、停止、重启命令
2016-04-19 14:58
746 查看
基本的操作方法:
本文假设你的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
本文假设你的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
相关文章推荐
- Apache的工作模式
- org.apache.commons.net.io.CopyStreamException: IOException caught while copying
- wampserver环境配置--Apache2.4+PHP5.6+Mysql5.7.11
- 在Apache搭建多个网站方法
- 简要介绍Apache、php、mysql安装和工具介绍
- maven 项目jar 包冲突 Caused by: java.lang.ClassNotFoundException: org.apache.commons.beanutils.converters
- Apache Kafka 一 简介
- Visual Studio 2015 和 Apache Cordova 跨平台开发入门(一)
- CentOS快速搭建LAMP环境及修改Apache首页
- apache ab 相关参数
- apache性能测试工具ab使用详解
- apache性能测试工具ab使用详解
- java.lang.NoSuchMethodError: org.apache.neethi.Policy.normalize(Z)Lorg/apache/neethi/PolicyComponent
- Could not find or load main class org.apache.catalina.startup.Bootstrap
- Apache服务器最新版下载、安装及配置
- 20160419运行apache2.4 丢失VCRUNTIME140.DLL的解决办法
- hadoop解决Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/yarn/util/Apps
- Apache/2.4.18 (Unix) PHP/7.0+MySql5.7搭建Discuz论坛
- php7+apache2.4(x64)搭建的一些碎碎念
- Web性能压力测试工具之ApacheBench(ab)详解