yum -y install gcc gcc-c++ autoconf automake libtool make cmake
yum -y install zlib zlib-devel openssl openssl-devel pcre-devel
2.安装nginx
./configure --with-http_ssl_module --with-http_stub_status_module --with-pcre
make make install
3,安装之后nginx 的路径是 /usr/local/nginx
4.在全局变量里面配置nginx的环境变量.方便以后使用nginx的命令,
vim /etc/profile
export NGINX_HOME=/usr/local/nginx export PATH=$NGINX_HOME/sbin:$PATH