普华linux——nginx 环境配置

tar -xzvf nginx-1.16.1.tar.gz
升级glibc
tar -xzvf glibc-2.14.tar.gz
cd glibc-2.14
mkdir glibc-build-2.14
cd glibc-build-2.14
../configure --prefix=/opt/glibc-2.14
make
make install
安装pcre
tar -jxvf pcre-8.44.tar.bz2
./configure
make && make install

./configure --prefix=/usr/local/nginx --with-http_ssl_module
##./configure --without-http_rewrite_module --with-http_ssl_module
make
make install

ln -s /usr/local/lib/libpcre.so.1 /lib64/
./nginx -t
./nginx

ps -ef | grep nginx
ln -s /usr/local/nginx/sbin/nginx /usr/local/sbin
ll /usr/local/sbin/ | grep nginx