Ubuntu 12.10 安装nginx后报502错误
来源:互联网 发布:新手如何快速入门seo 编辑:程序博客网 时间:2024/05/21 23:34
首先来让我们看看之前得配置。关于PHP一块的配置。
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- include fastcgi_params;
- }
问题其实出现在 fastcgi_pass得配置上面。
在ubuntu 12.10安装了php5-fpm之后。我们可以去
- /etc/php5/fpm/pool.d/www.conf
里面找到这样一条代码:
- listen = /var/run/php5-fpm.sock
这个是使用unix得方式来使用php5-fpm得。
这个时候。我们得php配置要改成
- location ~ \.php$ {
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
这里fastcgi_pass的地址要改成这个。。这样你的lnmp就正常了。
- Ubuntu 12.10 安装nginx后报502错误
- nginx报 502错误
- nginx报502错误
- ubuntu 升级后运行nginx报错
- nginx 下安装nginx_concat_module报400错误
- linux/ubuntu下安装nginx时./configure后出现几种错误的解决方法
- Ubuntu安装Myeclipse后创建Maven项目报Build Plan错误的解决方法
- ubuntu 14.4 安装开机后报the system is running in low-graphics mode错误
- ubuntu安装openssh-server报依赖错误
- Ubuntu安装teamviewer报libqt5x11extras5依赖错误
- 安装完Nginx后访问报错,显示不支持pathinfo
- nginx 报499 502等错误处理
- nginx报502、504、400、413错误
- nginx+uwsgi+django报502错误分析
- nginx安装nginx_concat_module模块报400错误的问题
- ubuntu安装SDL报x11安装错误解决办法
- ubuntu自动安装 nginx后 文件结构及位置
- ubuntu 安装nginx后一直启动不了的一个原因
- [Leetcode] Word Break、Word BreakII
- 好用的同步代码块和同步函数
- 语法错误javac(编译),逻辑错误java(运行)
- 网络工程实施技术与方案大全(77.9M)|pdf电子书
- 显著目标检测思路(转载自yangchuancv)
- Ubuntu 12.10 安装nginx后报502错误
- cassandra初次使用之添加数据和得到数据
- 制作一个玻璃球
- 大道PHP+LAMP+ZEND+开源框架整合开发与实战|pdf电子书(100m)
- Linux shell编程 13 ---- 子Shell与进程处理
- Ubuntu下利用scp在虚拟机和主机之间传输文件
- Django 1.5.4 专题23 Celery RabbitMQ
- 写博客好习惯的开始
- epoll-linux提高并发服务器效率