apache 基本操作
2016-04-11 12:41
519 查看
基本的操作方法:
本文假设你的apahce安装目录为/usr/local/apache2,这些方法适合任何情况
apahce启动命令:
推荐/usr/local/apache2/bin/apachectlstart apaceh启动
apache停止命令
/usr/local/apache2/bin/apachectlstop
停止
apache重新启动命令:
/usr/local/apache2/bin/apachectlrestart 重启
要在重启 Apache服务器时不中断当前的连接,则应运行:
/usr/local/sbin/apachectlgraceful
如果apache安装成为linux的服务的话,可以用以下命令操作:
service httpd start启动
service httpd restart重新启动
service httpd stop停止服务
Linux系统为Ubuntu
一、StartApache 2 Server /启动apache服务
# /etc/init.d/apache2start
or
$ sudo/etc/init.d/apache2 start
二、Restart Apache 2 Server /重启apache服务
# /etc/init.d/apache2restart
or
$ sudo/etc/init.d/apache2 restart
三、StopApache 2 Server /停止apache服务
# /etc/init.d/apache2stop
or
$ sudo/etc/init.d/apache2 stop
本文假设你的apahce安装目录为/usr/local/apache2,这些方法适合任何情况
apahce启动命令:
推荐/usr/local/apache2/bin/apachectlstart apaceh启动
apache停止命令
/usr/local/apache2/bin/apachectlstop
停止
apache重新启动命令:
/usr/local/apache2/bin/apachectlrestart 重启
要在重启 Apache服务器时不中断当前的连接,则应运行:
/usr/local/sbin/apachectlgraceful
如果apache安装成为linux的服务的话,可以用以下命令操作:
service httpd start启动
service httpd restart重新启动
service httpd stop停止服务
Linux系统为Ubuntu
一、StartApache 2 Server /启动apache服务
# /etc/init.d/apache2start
or
$ sudo/etc/init.d/apache2 start
二、Restart Apache 2 Server /重启apache服务
# /etc/init.d/apache2restart
or
$ sudo/etc/init.d/apache2 restart
三、StopApache 2 Server /停止apache服务
# /etc/init.d/apache2stop
or
$ sudo/etc/init.d/apache2 stop
相关文章推荐
- Apache Web Server无法启动
- Apache本地服务器的部署
- centos6.7下搭配apache+php+mysql环境
- apache日志文件处理成sqlite数据库
- Imaging (previously called Sanselan)读取图像信息
- Apache虚拟主机的配置
- Windows+Apache搭建PHP开发环境
- Apache服务无法启动的解决方法
- apache ssl 配置
- 使用DBCP,C3P0,druid,apache-jdbc配置JNDI数据源
- Apache POI 读写 Excel file (.xls or .xlsx)
- 使Apache支持PHP
- Apache commons-io LineIterator学习
- Apache的安装与卸载
- Apache CXF实现的SOAP形式的webservices
- apache2.4.12 局域网的其他电脑,无法访问我的apache
- Apache Maven 入门篇
- java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory 解决方案
- Apache James邮件服务器介绍及配置发送外网邮件
- 源码编译安装apache报APR错及解决方案