![apachectl restart 抛出失败](https://linux22.com/image/692003/apachectl%20restart%20%E6%8A%9B%E5%87%BA%E5%A4%B1%E8%B4%A5.png)
我的服务器昨晚还在运行,今天早上却无法访问它。所以我尝试重新启动,但失败了。你能从这条消息中看出原因吗?
[jcaruso001@antlet11 ~]$ sudo apachectl restart
[sudo] password for jcaruso001:
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
[jcaruso001@antlet11 ~]$ systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2016-10-18 09:53:09 PDT; 23s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 22923 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 22922 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=0/SUCCESS)
Main PID: 22922 (code=exited, status=0/SUCCESS)
[jcaruso001@antlet11 ~]$
我有昨天的访问日志,但没有今天的错误日志或访问日志。
/var/log/httpd
-rw-r--r--. 1 root root 1146 Oct 9 03:30 error_log-20161009
-rw-r--r--. 1 root root 81758 Oct 9 03:30 access_log-20161009
-rw-r--r--. 1 root root 1276 Oct 11 19:55 error_log-20161016
-rw-r--r--. 1 root root 0 Oct 16 03:49 access_log
-rw-r--r--. 1 root root 0 Oct 16 03:49 error_log
-rw-r--r--. 1 root root 111750 Oct 17 22:40 access_log-20161016