yum install -y gcc
yum install -y gcc-c++
yum install -y pcre pcre-devel
yum install -y zlib zlib-devel
yum install -y openssl openssl-devel
nginx-1.10.1.tar.gz
tar -zxvf nginx-1.10.1-tar.gz
cd /root/nginx-1.10.1
./configure
make
make install
sudo /usr/local/nginx/sbin/nginx
192.168.1.101 ( your IP)
welcome to nginx