问题:Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.


问题的状态:

(1)重启
[root@iZ25dmhrwpjZ ~]#systemctl restart httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
Job for httpd.service failed. See 'systemctl status httpd.service' _error

(2)查看状态
[root@iZ25dmhrwpjZ ~]# systemctl status httpd.service
httpd.service - SYSV: Apache is a World Wide Web server.  It is used to serve HTML files and CGI.
   Loaded: loaded (/etc/rc.d/init.d/httpd)
   Active: failed (Result: timeout) since Sat 2016-01-23 20:28:54 CST; 48s ago
  Process: 5386 ExecStart=/etc/rc.d/init.d/httpd start (code=exited, status=0/SUCCESS)

Jan 23 20:23:54 iZ25dmhrwpjZ systemd[1]: Starting SYSV: Apache is a World Wide Web server.  It is used to serve HTML files and CGI....
Jan 23 20:23:54 iZ25dmhrwpjZ httpd[5386]: Starting httpd: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.162.217.220. Set the '...this message
Jan 23 20:23:54 iZ25dmhrwpjZ httpd[5386]: httpd (pid 23763) already running
Jan 23 20:23:54 iZ25dmhrwpjZ httpd[5386]: [  OK  ]
Jan 23 20:23:54 iZ25dmhrwpjZ systemd[1]: PID file /var/run/httpd.pid not readable (yet?) after start.
Jan 23 20:28:54 iZ25dmhrwpjZ systemd[1]: httpd.service operation timed out. Terminating.
Jan 23 20:28:54 iZ25dmhrwpjZ systemd[1]: Failed to start SYSV: Apache is a World Wide Web server.  It is used to serve HTML files and CGI..
Jan 23 20:28:54 iZ25dmhrwpjZ systemd[1]: Unit httpd.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.

Job for httpd.service failed. See 'systemctl status httpd.service' _error_02

(3)http访问

Job for httpd.service failed. See 'systemctl status httpd.service' _error_03


开始百度搜索解决方案

查看日志:

cat /var/log/message | grep httpd

Job for httpd.service failed. See 'systemctl status httpd.service' _error_04


"Starting httpd: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.162.217.220. Set the 'ServerName' directive globally to suppress this message"问题解决方案——》http://ouyangjun.blog.51cto.com/10284323/1738084

本文出现的问题主要是下一句

httpd:httpd(pid 23763) already runing

Job for httpd.service failed. See 'systemctl status httpd.service' _error_05

ps -ef | grep 23763查看出现这么多(不知道怎么搞得)

@TODO 问题待解决...


参考

http://wangsheng1.blog.51cto.com/29473/1550655

http://www.oishare.com/Home/b/163.html