nginx+php简单配置环境
2013-12-27 18:13
295 查看
首先我的需求是:
1. 需要有PHP的服务。web目录存放在各处。
2. 需要有多个端口。
步骤:
1. 安装nginx php,我的系统是mac 所以安装使用brew, 一键完成。。。
2. 开启php-fastcgi.
简单要说明,nohup 表示后端启动 ,商品为3344
3. 配置nginx
重启nginx
1. 需要有PHP的服务。web目录存放在各处。
2. 需要有多个端口。
步骤:
1. 安装nginx php,我的系统是mac 所以安装使用brew, 一键完成。。。
2. 开启php-fastcgi.
nohup php-cgi -b 3344&
简单要说明,nohup 表示后端启动 ,商品为3344
3. 配置nginx
location ~ \.php$ { root /Users/yansunrong/demo; fastcgi_pass 127.0.0.1:3344; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }
重启nginx
sudo nginx -s reload
相关文章推荐
- apache+php+mysql环境简单配置
- windows下配置nginx+php环境
- windows下配置nginx+php环境
- (转)windows下配置nginx+php环境
- 微信开发环境配置以及开发基础PHP简单说明
- windows下配置nginx+php环境
- 安装配置php-fpm来搭建Nginx+PHP的生产环境
- 在IIS 7中配置PHP运行环境简单步骤[图文教程]
- windows下配置nginx+php环境
- 小黑小波比.Ubuntu14.04下配置Nginx+php5+Mariadb开发环境
- windows平台中配置nginx+php环境
- windows下nginx+php简单配置
- 在centos配置nginx+php的环境
- windows下配置nginx+php环境
- windows下配置nginx+php环境
- windows下配置nginx+php环境配置
- windows下配置nginx+php环境
- win7下配置nginx+php环境
- windows下配置nginx+php环境
- Nginx+php-fpm环境配置详细步骤