singasong 发表于 2018-1-24 09:11:26

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

502 Bad Gatewaynginx

singasong 发表于 2018-1-24 09:12:44

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

原来装的1.4,重新格了装的1.5,打开了fileinfo
谢谢~~~

singasong 发表于 2018-1-24 09:19:56

安装的是lnmpa

lnmpa
apache 2.2
mysql 5.5
php 5.6

licess 发表于 2018-1-24 09:30:27

建议上传安装日志看一下,lnmpa安装完就 502可能是apache没安装成功或者apache没启动

singasong 发表于 2018-1-24 09:53:35

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

iptables: Saving firewall rules to /etc/sysconfig/iptables: 
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.

singasong 发表于 2018-1-24 09:54:42

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

刚才又试了一下,用其他的一组阿里云服务器也是这样的错误。

licess 发表于 2018-1-24 10:24:34

回复 5# 的帖子

apache前面都报错了,没启动肯定502
压缩上传完整安装日志
页: [1]
查看完整版本: 阿里云空间CENTOS6.8新装1.5出现这个问题,1.4没事儿