1、
启动apache: apachectl start
结束apache: apachectl stop
重启apache: apachectl restart
注意:启动apachectl一定要在bin的上级目录中执行,例如bin/apachectl start,因为apachectl会调用httpd,而httpd默认会寻找./conf/httpd.conf。
2、
如果apache的安装路径变了,一定要改动两个文件:bin/apachectl和conf/httpd.conf
本文介绍了Apache服务器的基本操作命令,包括启动、停止及重启,并强调了执行这些命令时的目录要求。此外,还提到了当Apache安装路径发生变化时,需要修改的两个关键文件。
1、
启动apache: apachectl start
结束apache: apachectl stop
重启apache: apachectl restart
注意:启动apachectl一定要在bin的上级目录中执行,例如bin/apachectl start,因为apachectl会调用httpd,而httpd默认会寻找./conf/httpd.conf。
2、
如果apache的安装路径变了,一定要改动两个文件:bin/apachectl和conf/httpd.conf
247
1259
1328

被折叠的 条评论
为什么被折叠?