通过shell 脚本
#!/bin/bash
yum -y install wget pcre-devel openssl openssl-devel libtool gcc automake autoconf libtool make
wget http://nginx.org/download/nginx-1.6.3.tar.gz
tar -zxvf nginx-1.6.3.tar.gz -C /usr/local
cd /usr/local/nginx-1.6.3
./configure --prefix=/usr/local/nginx-1.6.3 --with-http_stub_status_module --with-http_ssl_module
make && make install?
cd /usr/local/nginx-1.6.3/cnf
修改配置文件
然后
nginx -s reload
看效果
时间: 2024-10-05 11:33:24