File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 31
31
echo " 下载 Nginx"
32
32
33
33
cd /opt/setups
34
- wget http ://nginx.org/download/nginx-1.12.1 .tar.gz
34
+ wget https ://nginx.org/download/nginx-1.12.2 .tar.gz
35
35
36
- if [ ! -f " /opt/setups/nginx-1.12.1 .tar.gz" ]; then
36
+ if [ ! -f " /opt/setups/nginx-1.12.2 .tar.gz" ]; then
37
37
echo " Nginx 下载失败,结束脚本"
38
38
exit 1
39
39
fi
40
40
41
41
echo " Nginx 下载成功,开始解压 Nginx"
42
- tar -zxf nginx-1.12.1 .tar.gz
42
+ tar -zxf nginx-1.12.2 .tar.gz
43
43
44
- if [ ! -d " /opt/setups/nginx-1.12.1 " ]; then
44
+ if [ ! -d " /opt/setups/nginx-1.12.2 " ]; then
45
45
echo " Nginx 解压失败,结束脚本"
46
46
exit 1
47
47
fi
@@ -50,7 +50,7 @@ echo "安装源码安装依赖"
50
50
yum install -y gcc gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel
51
51
52
52
echo " 开始安装 Nginx"
53
- cd nginx-1.12.1 /
53
+ cd nginx-1.12.2 /
54
54
55
55
./configure --prefix=/usr/local/nginx --pid-path=/var/local/nginx/nginx.pid --lock-path=/var/lock/nginx/nginx.lock --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-http_gzip_static_module --http-client-body-temp-path=/var/temp/nginx/client --http-proxy-temp-path=/var/temp/nginx/proxy --http-fastcgi-temp-path=/var/temp/nginx/fastcgi --http-uwsgi-temp-path=/var/temp/nginx/uwsgi --with-http_ssl_module --http-scgi-temp-path=/var/temp/nginx/scgi
56
56
make
You can’t perform that action at this time.
0 commit comments