Skip to content

Commit ae99ac8

Browse files
judasnzhangchaohuang
authored andcommitted
2017-12-15 nginx 脚本版本更新
1 parent 0c75aa3 commit ae99ac8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

favorite-file/shell/install_nginx_centos7.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ fi
3131
echo "下载 Nginx"
3232

3333
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
3535

36-
if [ ! -f "/opt/setups/nginx-1.12.1.tar.gz" ]; then
36+
if [ ! -f "/opt/setups/nginx-1.12.2.tar.gz" ]; then
3737
echo "Nginx 下载失败,结束脚本"
3838
exit 1
3939
fi
4040

4141
echo "Nginx 下载成功,开始解压 Nginx"
42-
tar -zxf nginx-1.12.1.tar.gz
42+
tar -zxf nginx-1.12.2.tar.gz
4343

44-
if [ ! -d "/opt/setups/nginx-1.12.1" ]; then
44+
if [ ! -d "/opt/setups/nginx-1.12.2" ]; then
4545
echo "Nginx 解压失败,结束脚本"
4646
exit 1
4747
fi
@@ -50,7 +50,7 @@ echo "安装源码安装依赖"
5050
yum install -y gcc gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel
5151

5252
echo "开始安装 Nginx"
53-
cd nginx-1.12.1/
53+
cd nginx-1.12.2/
5454

5555
./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
5656
make

0 commit comments

Comments
 (0)