进入:/usr/java/nginx位置 下载nginx: wget http://nginx.org/download/nginx-1.8.0.tar.gz 下载openssl : wget http://www.openssl.org/source/openssl-fips-2.0.9.tar.gz 下载zlib : wget http://zlib.net/zlib-1.2.8.tar.gz 下载pcre : wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38.tar.gz 如果没有安装c++编译环境,还得安装,通过yum install gcc-c++完成安装 下一步,编译安装 openssl : [[email protected]] tar zxvf openssl-fips-2.0.9.tar.gz [[email protected]] cd openssl-fips-2.0.9 [[email protected]] ./config && make && make install pcre: [[email protected]] tar zxvf pcre-8.36.tar.gz [[email protected]] cd pcre-8.36 [[email protected]] ./configure && make && make install zlib: [[email protected]]tar zxvf zlib-1.2.8.tar.gz [[email protected]] cd zlib-1.2.8 [[email protected]] ./configure && make && make install 最后安装nginx [[email protected]]tar zxvf nginx-1.8.0.tar.gz [[email protected]] cd nginx-1.8.0 [[email protected]] ./configure && make && make install
时间: 2024-11-06 07:10:39