想要在lnmp环境下配置一个禅道服务呢,但是却发现php-fpm端口
没出现。
那么在nginx配置处想要调用的时候就会报错。
最后在网上看到一篇解疑,解决了这个问题。传送
netstat -tpln
未发现监听9000
端口。查看/var/log/php5-fpm.log
一切正常。
随后查看PHP配置文件:/usr/local/php/etc/php-fpm.conf
(源码安装)。
发现listen = /tmp/php-cgi.sock
。
想要解决nginx调用的问题,可参考如下办法。
修改nginx下的sites
配置:
location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param APPLICATION_ENV production; include fastcgi_params; }
为
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; }
重启php-fpm与nginx后,服务即可正常访问。
© 2018 www.qingketang.net 鄂ICP备18027844号-1
武汉快勤科技有限公司 13554402156 武汉市东湖新技术开发区关山二路特一号国际企业中心6幢4层7号
扫码关注,全站教程免费播放
订单金额:
支付金额:
支付方式: