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

linux 重启apache命令

2013-12-09 10:52 369 查看
//先到安装目录[root@test ~]# cd /usr/local/apache/bin
//执行重启命令[root@test bin]# ./apachectl restart

而我这的安装 目录是/usr/sbin/执行停止命令[root@test bin]# ./apache2ctl stop
apache服务,WEB端口在 1024以下的用  root 用户重启;1024的,使用指定用户重启即可!
重启命令 
 apachectl restart
如果 apache安装在 /usr/local/apache
那么命令就是 
root#/usr/local/apache/bin/apachectl restart或者web$/usr/local/apache/bin/apachectl restart
还可以先进入 apache安装目录
cd /usr/local/apache
./apachectl restart
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: