ink Something went wrong: <html> <head><title>502 Bad Gateway</title></head> <body> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx</center> </body> </html> <!– a padding to disable MSIE and Chrome friendly error page –> <!– a padding to disable MSIE and Chrome friendly error page –> <!– a padding to disable MSIE and Chrome friendly error page –> <!– a padding to disable MSIE and Chrome friendly error page –> <!– a padding to disable MSIE and Chrome friendly error page –> <!– a padding to disable MSIE and Chrome friendly error page –>
Golden ink # 运行检查命令 nginx -t # 返回如下结果,说明配置无误 nginx: the configuration file /www/server/nginx/conf/nginx.conf syntax is ok nginx: configuration file /www/server/nginx/conf/nginx.conf test is successful # 重载 Nginx 配置 nginx -s reload
ink ink Something went wrong: SQLSTATE[23000]: Integrity constraint violation: 1022 Can't write; duplicate key in table '#sql-6df8_1db' (SQL: alter tablepostsadd constraintposts_user_id_foreignforeign key (user_id) referencesusers(id) on delete set null)
Golden ink 变成 update 是因为数据库已经存在了,可能是之前 502 错误的时候 flarum 生成了数据库。运行下 php flarum migrate 和 php flarum cache:clear, 502 的话,检查该站点的 nginx 配置吧,重启 php 和 nginx,还是不行的话,删除站点重新装一次吧。。。你都成功装了升腾轻。。跟着你当时的步骤来应该没问题的
松鼠爱摸鱼 LightningStar 🤣刚百度了一圈,没啥有效的解决方法,引用下Triangle大佬的话: Golden 502 的话,检查该站点的 nginx 配置吧,重启 php 和 nginx,还是不行的话,删除站点重新装一次吧。。。你都成功装了升腾轻。。跟着你当时的步骤来应该没问题的