标签:
Nginx的安装
需要下载四个包
1.zlib库(下载:http://www.zlib.net/)
2.pcre库(下载:http://www.pcre.org/)
3.openssl库(下载:http://www.openssl.org/)
4.Nginx包(下载:http://nginx.org/en/download.html)
安装步骤
第一步:下载所需的安装包
openssl-fips-2.0.9.tar.gz
zlib-1.2.8.tar.gz
pcre-8.35.tar.gz
nginx-1.2.9.tar.gz
第二步:依次安装 openssl-fips-2.0.9.tar.gz zlib-1.2.8.tar.gz pcre-8.35.tar.gz nginx-1.2.9.tar.gz
1.安装openssl-fips-2.0.9.tar.gz
# tar -zxvf openssl-fips-2.0.9.tar.gz # cd openssl-fips-2.0.9 # ./config # make # make install
2.安装zlib-1.2.8.tar.gz
# tar -zxvf zlib-1.2.8.tar.gz # cd zlib-1.2.8 # ./configure # make # make install
3.安装 pcre-8.35.tar.gz
# tar -zxvf pcre-8.35.tar.gz # cd pcre-8.35 # ./configure # make # make install
4.安装nginx-1.2.9.tar.gz
# tar -zxvf nginx-1.2.6.tar.gz # cd nginx-1.2.6 # ./configure --with-pcre=../pcre-8.35 --with-zlib=../zlib-1.2.8 --with-openssl=../openssl-fips-2.0.9 # make # make install
至此,Nginx安装成功
检查安装是否成功
# cd /usr/local/nginx/sbin
# ./nginx -t
如果出现以下提示,则表示安装成功
参考博客:http://www.cnblogs.com/dennisit/archive/2012/12/26/2834719.html
标签:
原文地址:http://www.cnblogs.com/zhanjunling/p/4212741.html