centos7编译安装nginx1.8-创新互联
安装pcre
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38.tar.gz
tar -zxvf pcre-8.38.tar.gz
cd pcre-8.38
./configure
make
make install安装openssl
wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
tar -zxvf openssl-1.0.1c.tar.gz
cd openssl-1.0.1c/
./config
make
make install在安装时如果出现如下错误:POD document had syntax errors at /usr/bin/pod2man line 69. 解决如下:
rm -rf /usr/bin/pod2man 安装zlib
wget http://zlib.net/zlib-1.2.8.tar.gz
tar -zxvf zlib-1.2.8.tar.gz
cd zlib-1.2.8
./configure
make
make install安装nginx
$ tar xzf nginx-1.8.0.tar.gz
$ ./configure --prefix=/usr/local/nginx --with-pcre=../pcre-8.38 --with-openssl=../openssl-1.0.1c --with-zlib=../zlib-1.2.8 --user=www --group=www --with-http_stub_status_module
$ make
$ make install
网站标题:centos7编译安装nginx1.8-创新互联
分享网址:
http://dzwzjz.com/article/csiejp.html