标签:
1、下载安装pcre,nginx依赖于pcre
wget https://sourceforge.net/projects/pcre/files/pcre/8.38/pcre-8.38.tar.gz
tar -zxvf pcre-8.38.tar.gz
cd pcre-8.38
./configure
make
make install
2、下载nginx
wget http://nginx.org/download/nginx-1.9.12.tar.gz
tar -zxvf nginx-1.9.12.tar.gz
cd nginx-1.9.12
./configure
make
make install
3、创建nginx用户
groupadd www
useradd -g www www
4、如果启动报错
ln -s /usr/local/lib/libpcre.so.1 /lib64
标签:
原文地址:http://www.cnblogs.com/bury12/p/5249537.html