安装 nginx 依赖
下载模块依赖性 Nginx 需要依赖下面 3 个包
1.gzip 模块需要 zlib 库 ( 下载: http://www.zlib.net/ )
2.rewrite 模块需要 pcre 库 ( 下载: http://www.pcre.org/ )
3.ssl 功能需要 openssl 库 ( 下载: http://www.openssl.org/ )
依赖包安装顺序依次为:openssl、zlib、pcre, 然后安装 Nginx 包
如果没有安装 c++编译环境,还得安装,通过 yum install gcc-c++完成安装
下一步,编译安装
openssl:
[root@localhost]%tar%zxvf%openssl-fips-2.0.9.tar.gz
[root@localhost]%cd%openssl-fips-2.0.9
[root@localhost]%./config%&&%make%&&%make%install
%
zlib:
[root@localhost]tar%zxvf%zlib-1.2.8.tar.gz
[root@localhost]%cd%zlib-1.2.8
[root@localhost]%%./configure%&&%make%&&%make%install
%
pcre:
%