我的服务器昨晚还在运行,今天早上却无法访问它。所以我尝试重新启动,但失败了。你能从这条消息中看出原因吗?
[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