问题: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.
wKioL1ajdZTwR0DPAAAReaQ10So517.png

(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.

wKioL1ajdcrRQIV5AABdz3xE9C8659.png

(3)http访问

wKiom1ajdrOAwjbxAAAqCUt71u4113.png


开始百度搜索解决方案

查看日志:

cat /var/log/message | grep httpd

wKioL1ak9LKQsysaAABc9W4UXDQ119.png


"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

wKioL1ak9V3Tj_GXAAApvGdrYmM056.png

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

@TODO 问题待解决...


参考

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

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