VPS侦探论坛

 找回密码
 注册
查看: 3383|回复: 6

阿里云空间CENTOS6.8新装1.5出现这个问题,1.4没事儿

[复制链接]
发表于 2018-1-24 09:11:26 | 显示全部楼层 |阅读模式

502 Bad Gatewaynginx
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2018-1-24 09:12:44 | 显示全部楼层

军哥其他人有类似问题吗?安全规则没动过呀



原来装的1.4,重新格了装的1.5,打开了fileinfo
谢谢~~~
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2018-1-24 09:19:56 | 显示全部楼层

安装的是lnmpa


lnmpa
apache 2.2
mysql 5.5
php 5.6
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-1-24 09:30:27 | 显示全部楼层



建议上传安装日志看一下,lnmpa安装完就 502可能是apache没安装成功或者apache没启动
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2018-1-24 09:53:35 | 显示全部楼层

这是安装完毕后的log,虽然前面有报错,但看起来服务都启动了


iptables: Saving firewall rules to /etc/sysconfig/iptables: [  OK  ]
Add Startup and Starting LNMPA...
Add nginx service at system startup...
Starting nginx...  done
Add mysql service at system startup...
Starting MySQL.. SUCCESS!
Add httpd service at system startup...
start apache... httpd: Syntax error on line 428 of /usr/local/apache/conf/httpd.conf: Syntax error on line 1 of /usr/local/apache/conf/extra/mod_remoteip.conf: Cannot load /usr/local/apache/modules/mod_remoteip.so into server: /usr/local/apache/modules/mod_remoteip.so: cannot open shared object file: No such file or directory
failed
============================== Check install ==============================
Checking ...
Nginx: OK
MySQL: OK
PHP: OK
Apache: OK
Clean src directory...
+------------------------------------------------------------------------+
|          LNMP V1.5 for CentOS Linux Server, Written by Licess          |
+------------------------------------------------------------------------+
|           For more information please visit https://lnmp.org           |
+------------------------------------------------------------------------+
|    lnmp status manage: lnmp {start|stop|reload|restart|kill|status}    |
+------------------------------------------------------------------------+
|  phpMyAdmin: http://IP/phpmyadmin/                                     |
|  phpinfo: http://IP/phpinfo.php                                        |
|  Prober:  http://IP/p.php                                              |
+------------------------------------------------------------------------+
|  Add VirtualHost: lnmp vhost add                                       |
+------------------------------------------------------------------------+
|  Default directory: /home/wwwroot/default                              |
+------------------------------------------------------------------------+
|  MySQL/MariaDB root password:                        |
+------------------------------------------------------------------------+
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
nginx (pid 18495 18493) is running...
SUCCESS! MySQL running (19001)
Apache is stopped.
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State      
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      
Install lnmp takes 24 minutes.
Install lnmp V1.5 completed! enjoy it.

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2018-1-24 09:54:42 | 显示全部楼层

用其他的一组阿里云服务器也是这样的错误


刚才又试了一下,用其他的一组阿里云服务器也是这样的错误。
发表于 2018-1-24 10:24:34 | 显示全部楼层

回复 5# 的帖子


apache前面都报错了,没启动肯定502
压缩上传完整安装日志
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-24 17:15 , Processed in 0.027662 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表