nginx 学习笔记【持续更新...】

1.如果在安装过程中出现以下错误 需要安装pcre库 

解决方案:yum install pcre

2.如果nginx启动提示端口被占用,则停止该端口的服务再启动nginx,一般为httpd服务

解决方案:service httpd stop

3.nginx下php编译

./configure  --prefix=/usr/local/fastphp 
--with-mysql=mysqlnd 
--enable-mysqlnd 
--with-gd 
--enable-gd-native-ttf 
--enable-gd-jis-conv
--enable-fpm

  

原文地址:https://www.cnblogs.com/guaidaodark/p/4876951.html