1.进入nginx目录
[root@TA30-53 local]# cd nginx/
[root@TA30-53 nginx]# pwd
/usr/local/nginx
下载jar
下载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.gzop
下载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
[root@TA30-53 nginx]# ll 总用量 4796 -rw-r--r-- 1 root root 832104 3月 9 13:32 nginx-1.8.0.tar.gz -rw-r--r-- 1 root root 1442754 3月 9 13:33 openssl-fips-
[root@TA30-53 local]# tar zxvf zlib-1.2.8.tar.gz
2.0.5.tar.gz-rw-r--r-- 1 root root 2053336 3月 9 13:36 pcre-8.38.tar.gz-rw-r--r-- 1 root root 571091 3月 9 13:33 zlib-1.2.8.tar.gz[root@TA30-53 nginx]#
编译安装
tar zxvf openssl-fips-2.0.5.tar.gz
cd openssl-fips-2.0.5
[root@TA30-53 openssl-fips-2.0.5]# ./config && make && make install
[root@TA30-53 local]# tar zxvf pcre-8.38.tar.gz
[root@TA30-53 local]# cd pcre-8.38
[root@TA30-53 pcre-8.38]# ./configure && make && make install
[root@TA30-53 local]# tar zxvf zlib-1.2.8.tar.gz
[root@TA30-53 local]# cd zlib-1.2.8
[root@TA30-53 zlib-1.2.8]# ./configure && make && make install
最后安装nginx[root@TA30-53 local]# tar zxvf nginx-1.8.0.tar.gz
[root@TA30-53 local]# cd nginx-1.8.0
[root@TA30-53 nginx-1.8.0]# ./configure && make && make install
启动nginx
[root@TA30-53 ~]# /usr/local/nginx/sbin/nginx [root@TA30-53 ~]# ps -ef|grep nginx root 15208 1 0 14:14 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx nobody 15209 15208 0 14:14 ? 00:00:00 nginx: worker process root 15236 5478 0 14:15 pts/0 00:00:00 grep nginx