1、yum -y install gcc gcc-c++ autoconf automake
2、yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel
3、cd /data/software
4、wget http://7xnujb.com1.z0.glb.clouddn.com/nginx-1.10.1.tar.gz
5、tar -zxvf nginx-1.10.1.tar.gz
6、cd nginx-1.10.1
7、./configure --prefix=/usr/local/nginx
8、make
9、sudo make install
10、启动 /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
11、检验 ps -ef | grep nginx