216.解决Service Unavailable

在这里插入图片描述
描述:上周部署的Zabbix服务器,今早打开访问Server呈现上边报错!!!

解决方案:

1.查看阿帕奇日志,发现php start error
[root@host1 httpd]# tail error_log 
[Sat Jun 20 11:28:26.896922 2020] [proxy:error] [pid 44690] (111)Connection refused: AH02454: FCGI: attempt to connect to Unix domain socket /var/opt/rh/rh-php72/run/php-fpm/zabbix.sock (*) failed
[Sat Jun 20 11:28:26.897012 2020] [proxy_fcgi:error] [pid 44690] [client 10.0.0.1:59742] AH01079: failed to make connection to backend: httpd-UDS
[Sat Jun 20 11:28:27.098810 2020] [proxy:error] [pid 44686] (111)Connection refused: AH02454: FCGI: attempt to connect to Unix domain socket /var/opt/rh/rh-php72/run/php-fpm/zabbix.sock (*) failed
[Sat Jun 20 11:28:27.098863 2020] [proxy_fcgi:error] [pid 44686] [client 10.0.0.1:59743] AH01079: failed to make connection to backend: httpd-UDS
[Sat Jun 20 11:29:03.612452 2020] [mpm_prefork:notice] [pid 44582] AH00170: caught SIGWINCH, shutting down gracefully
[Sat Jun 20 11:29:09.737718 2020] [suexec:notice] [pid 45539] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::20c:29ff:fe66:9587. Set the 'ServerName' directive globally to suppress this message
[Sat Jun 20 11:29:09.791390 2020] [lbmethod_heartbeat:notice] [pid 45539] AH02282: No slotmem from mod_heartmonitor
[Sat Jun 20 11:29:09.804181 2020] [mpm_prefork:notice] [pid 45539] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Sat Jun 20 11:29:09.804241 2020] [core:notice] [pid 45539] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

2.检查各服务状态并启动php
[root@host1 ~]# systemctl restart zabbix-server zabbix-agent httpd rh-php72-php-fpm

在这里插入图片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章