AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] 502 Bad Gateway - 502.html 网站报错 |
|
---|---|
doocii |
doocii 发表于 2015-12-24 12:24:10
#!/bin/bash #chkconfig: 345 85 15 网站服务器基本每天都要重启,请问这个应该怎么修复呢? /etc/init.d/amh-start 返回的信息 @amysql #description: AMH start script. /sbin/iptables-restore < /etc/amh-iptables; amh nginx stop; amh mysql stop; for PID in `ps aux|grep -E 'php-fpm|pure-ftpd|nginx'|grep -v grep|awk '{print $2}'`; do kill -QUIT $PID >/dev/null; done; rm -f /usr/local/php/var/run/pid/*.pid; rm -f /usr/local/php/var/run/php-fpm.pid; sync; { echo 3 > /proc/sys/vm/drop_caches; } 2>/dev/null; amh mysql start; amh php start; /usr/local/php/sbin/php-fpm --fpm-config /usr/local/php/etc/php-fpm.conf; /usr/local/sbin/redhat.init start 2>/dev/null; amh nginx start; { echo 0 > /proc/sys/vm/drop_caches; } 2>/dev/null;
点赞,加油! (0分)
2015-12-24 12:24:10 1
|
dongshan8 |
楼主您好,
请问您的nginx后边跑的是php站点吗? 如果是,会否因为php程序使用资源较多而卡住了呢? 为您搜索到这个,您可以参考一下:《nginx 502 Bad Gateway 错误解决办法》,http://jingyan.baidu.com/article/eb9f7b6dacaac3869364e88f.html
回复
2015-12-24 17:50:05 2
|
wubaoce |
我的4.2AMH页报错了
使用 /etc/init.d/amh-start^C [root@iZbp15kt3jxz8tht37qllcZ etc]# /etc/init.d/amh-start ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com [OK] Nginx stop ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com Shutting down MySQL. [ OK ] [OK] MySQL stop ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com Starting MySQL. [ OK ] [OK] MySQL start ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com [Notice] All PHP start... ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com [Notice] store.dingxindai.com PHP start... [OK] store.dingxindai.com PHP start [11-Sep-2017 17:45:26] ERROR: [/usr/local/php/etc/php-fpm.conf:22] unknown entry 'error_log' [11-Sep-2017 17:45:26] ERROR: failed to load configuration file '/usr/local/php/etc/php-fpm.conf' [11-Sep-2017 17:45:26] ERROR: FPM initialization failed Starting pure-config.pl: Running: /usr/local/sbin/pure-ftpd --daemonize -A -c50 -B -C8 -D -E -fftp -H -I15 -lpuredb:/etc/pureftpd.pdb -lunix -L10000:8 -m4 -s -U133:022 -u100 -k99 -Z -p10100:10110 ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com [OK] Nginx start [root@iZbp15kt3jxz8tht37qllcZ etc]# vi php-fpm.conf [root@iZbp15kt3jxz8tht37qllcZ etc]# vi php-fpm.conf [root@iZbp15kt3jxz8tht37qllcZ etc]# /usr/local/php/sbin/php-fpm [11-Sep-2017 17:46:53] ERROR: [/usr/local/php/etc/php-fpm.conf:22] unknown entry 'error_log' [11-Sep-2017 17:46:53] ERROR: failed to load configuration file '/usr/local/php/etc/php-fpm.conf' [11-Sep-2017 17:46:53] ERROR: FPM initialization failed
回复
2017-09-11 17:49:34 3
|
894587758 |
502问题大部分都是PHP-FPM 导致的
回复
2017-09-16 08:46:50 4
|
xpnxglx |
php-fpm 这个战用的CPU非常大是什么原因呢
回复
2017-09-20 20:53:29 5
|