老师我按照您的配置 访问页面提示502Bad Gateway是什么情况

来源:11-4 yii2.0 TP 5.0 框架配置

chipinzhen

2019-07-11

server {
2 listen 80;
3 server_name yii2.zomkey.test;
4 root /data/www/yii2/web;
5 index index.php index.html;
6 access_log /var/log/nginx/access_yii2.log main;
7 location /{
8 try_files $uri uri//index.php?uri/ /index.php?uri//index.php?args;
9 }
10 location ~.php$ {
11 include fastcgi_params;
12 fastcgi_pass 127.0.0.1:9000;
13 fastcgi_param SCRIPT_FILENAME documentrootdocument_rootdocumentrootfastcgi_scrip t_name;
14 try_files $uri =404;
15 }
16 }
17
~

写回答

1回答

编程浪子

2019-07-11

你好

实在不行你截图吧,你这个完全无法看出你的问题

猜测下 你的 fpm启动了? 9000端口的 fpm

0
1
chipinzhen
感谢老师,已解决
2019-07-12
共1条回复

快速上手Linux 玩转典型应用

以主流CentOS 7 操作系统为例,系统讲解Linux,真实线上环境助你快速上手,独立配置运维服务器

1663 学习 · 572 问题

查看课程