您的位置:首页 > 运维架构 > Apache

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: