[root@hadoop1 ~]# yum -y install automake autoconf libtool make
[root@hadoop1 ~]# yum install gcc gcc-c++
[root@hadoop1 ~]# yum -y install openssl openssl-devel
[root@hadoop1 soft]# tar -zxvf pcre-8.39.tar.gz
[root@hadoop1 soft]# cd pcre-8.39
[root@hadoop1 pcre-8.39]# ./configure
[root@hadoop1 pcre-8.39]# make
[root@hadoop1 pcre-8.39]# make install
[root@hadoop1 soft]# tar -zxvf zlib-1.2.11.tar.gz
[root@hadoop1 soft]# cd zlib-1.2.11
[root@hadoop1 zlib-1.2.11]# ./configure
[root@hadoop1 zlib-1.2.11]# make
[root@hadoop1 zlib-1.2.11]# make install
[root@hadoop1 soft]# tar -zxvf nginx-1.1.10.tar.gz
[root@hadoop1 soft]# cd nginx-1.1.10
[root@hadoop1 nginx-1.1.10]# ./configure
[root@hadoop1 nginx-1.1.10]# make
[root@hadoop1 nginx-1.1.10]# make install
试试网页上输入自己虚拟机的ip地址
输入自己虚拟机的ip地址
直接在网页上输入hadoop1/即可显示Welcome to nginx!