1.启动apahce的命令:
/usr/local/apache2/bin/apachectlstartApache
2。停止Apache的命令:
/usr/local/apache2/bin/apachectlstop
3。重新启动Apache的命令:
/usr/local/apache2/bin/apachectlrestart
要在不中断当前连接的情况下重新启动Apache服务器,应运行:
/usr/local/SBIN/apachectl如果当前用户的Apache已作为Linux服务安装,则可以使用以下命令执行上述操作。
1.启动Apache
服务httpdStart
2。停止服务Apache
服务httpdStop
3。重启Apache
服务httpd重启
楼上可以,不过我个人用httpd-K重启,关键是找到httpd文件。[根@测试Bin]#httpdrestart-bash:httpd:commandnotfound显然bash在path指示的目录中找不到httpd,请尝试找到它,然后使用绝对路径。例如,这里是/home/service/Apache/bin/httpd-Krestart
售后响应及时
7×24小时客服热线数据备份
更安全、更高效、更稳定价格公道精准
项目经理精准报价不弄虚作假合作无风险
重合同讲信誉,无效全额退款