liunx重启apache服务的命令

来源:百度知道 编辑:UC知道 时间:2024/05/14 18:10:00
liunx重启apache服务的命令
我用service httpd restart老是出现这样的错误
httpd: unrecognized servicectl -restart
然后我又查资料说是用apachectl -restart的方法却出现这样的错误
bash: apachectl: command not found

哪位高手快来帮帮忙啊!
对啊,那就是apachectl -restart不是吗??
但还是出错啊

service httpd restart是windows下用的!!!

linux下直接找到执行文件重启啊!

补充:把完整的路径加上,或者到路径下,执行文件目录内执行

推荐你一个网站bbs.chinaunix.net,我的用户名是kecai_cale,那上面高人多

cd /usr/local/apache/bin下
这是你的安装目录 然后ls看见那里有个apachect1 ./apachect1 start就OK了