ufm httpd 启动失败
应用介绍
在安装mellanox ufm时提示:
Restarting httpd: [FAILED]
定位分析, 它程序里首先需要调用service httpd start
发现这个启动服务失败, 在shell中也确实提示这个错误:
Redirecting to /bin/systemctl start httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
[root@g01r1n00 conf]# vim httpd.conf
[root@g01r1n00 conf]# journalctl -xe
-- Subject: Session 171 has been terminated
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat
--
-- A session with the ID 171 has been terminated.
Mar 27 16:47:39 g01r1n00 ntpd[92325]: 0.0.0.0 c016 06 restart
Mar 27 16:47:39 g01r1n00 ntpd[92325]: 0.0.0.0 c012 02 freq_set kernel 42.251 PPM
Mar 27 16:47:51 g01r1n00 polkitd[56191]: Registered Authentication Agent for unix-process:92327:2419410 (system bus name :1.561 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /or
Mar 27 16:47:51 g01r1n00 systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
Mar 27 16:47:51 g01r1n00 httpd[92343]: [Fri Mar 27 16:47:51.622625 2020] [so:warn] [pid 92343] AH01574: module ssl_module is already loaded, skipping
Mar 27 16:47:51 g01r1n00 httpd[92343]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.7.1.1. Set the 'ServerName' directive globally to suppre
Mar 27 16:47:51 g01r1n00 httpd[92343]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:8020
Mar 27 16:47:51 g01r1n00 httpd[92343]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:8020
Mar 27 16:47:51 g01r1n00 httpd[92343]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:8443
Mar 27 16:47:51 g01r1n00 httpd[92343]: no listening sockets available, shutting down
Mar 27 16:47:51 g01r1n00 httpd[92343]: AH00015: Unable to open logs
Mar 27 16:47:51 g01r1n00 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Mar 27 16:47:51 g01r1n00 kill[92345]: kill: cannot find process ""
Mar 27 16:47:51 g01r1n00 systemd[1]: httpd.service: control process exited, code=exited status=1
Mar 27 16:47:51 g01r1n00 systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
按照提示:地址已经bind了, 最后分析发现
启动httpd服务,会启动以下配置文件,都会加载
/etc/httpd/conf
/etc/httpd/conf.d
发现里面有
ufm.conf 配置文件有错误,现这个ufm.conf配置文件在卸载老版本ufm的时候是不会删除掉,安装新的ufm的时候,直接往里面写, 导致这个ufm配置文件出错。最终直接删掉,重新安装。正确的ufm配置文件如下:
Alias /ufmui /opt/ufm/media
Alias /ufm_web /opt/ufm/media
<Directory "/opt/ufm/media">
Options Indexes MultiViews
Options Indexes FollowSymLinks
AllowOverride None
SSLRequireSSL
Require all granted
</Directory>
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location /ufm>
ProxyPass http://127.0.0.1:8088 retry=1
ProxyPassReverse http://127.0.0.1:8088
AuthType Basic
AuthName "UFM server"
AuthUserFile /opt/ufm/conf/ufm.passwd
Require valid-user
SSLRequireSSL
</Location>
<Location /ufmRest>
ProxyPass http://127.0.0.1:8000 retry=1
ProxyPassReverse http://127.0.0.1:8000
RequestHeader add X-Script-Name "/ufmRest"
AuthType Basic
AuthName "UFM model rest server"
AuthUserFile /opt/ufm/conf/ufm.passwd
Require valid-user
SSLRequireSSL
</Location>
<Location /ufmStats>
ProxyPass http://127.0.0.1:8005/ufmStats
ProxyPassReverse http://127.0.0.1:8005/ufmStats
</Location>
<Location /fcRest/services>
ProxyPass http://127.0.0.1:8083/services
ProxyPassReverse http://127.0.0.1:8083/services
</Location>
Timeout 720
发
©版权声明:本文内容由互联网用户自发贡献,版权归原创作者所有,本站不拥有所有权,也不承担相关法律责任。如果您发现本站中有涉嫌抄袭的内容,欢迎发送邮件至: www_apollocode_net@163.com 进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
转载请注明出处: apollocode » ufm httpd 启动失败
文件列表(部分)
名称 | 大小 | 修改日期 |
---|
发表评论 取消回复