使用的命令是:
systemctl restart httpd.service
显示有错误,用
systemctl status httpd.service
查看错误信息,显示:
Active:failed(Result:exit-code) since Tue *******
Docs:man:httpd.service(8)
Process:799831 ExecStart=/httpd $OPTIONS -DFOREGROUND (code=exited,status=1/FAILURE)
Main PID:799831 (code=exited,status=1/FAILURE)
dnsdomainanme systemd[1]:Starting The Apache HTTP Server...
dnsdomainanme systemd[1]:httpd.service:Main process exited,code=exited,status=1/FAILURE
dnsdomainanme systemd[1]:httpd.service:Failed with result 'exit-code'.
dnsdomainanme systemd[1]:Failed to start The Apache HTTP Server.
请求各位指教,这是因为什么错误导致Apache启动失败