你的位置:首页 > Java教程

[Java教程]Linux 安装Nginx详细图解教程

进入:/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 installpcre: [[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