ngnix版本:1.6.3
环境:最小化安装的redhat6.4
yum install telnet nmap dos2unix -y #安装telnet
yum install make gcc gcc-g++ -y #安装编译环境
yum install -y pcre-devel #安装pcre
wget http://124.205.69.171/files/3223000000F33DC8/nginx.org/download/nginx-1.6.3.tar.gz #下载
tar -zxvf nginx-1.6.3.tar.gz
cd nginx-1.6.3
./configure --user=nginx --group=nginx --prefix=/application/nginx-1.6.3 --with-http_stub_status_module --with-http_ssl_module
make
make install
useradd nginx -s /sbin/nologin -M
/application/nginx-1.6.3/sbin/nginx
lsof -i :80 #验证
到此,安装成功。