安装nginx
cd /usr/local/src/
wget http://nginx.org/download/nginx-1.6.2.tar.gz
tar zxvf nginx-1.6.2.tar.gz
cd nginx-1.6.2
./configure --prefix=/usr/local/nginx --with-pcre
make
make install
启动nginx:
/usr/local/nginx/sbin/nginx
注意:nginx没有启动脚本,需要自己手动编写
checking for PCRE library in /opt/local/ ... not found
请yum安装pcre-devel包