-
Notifications
You must be signed in to change notification settings - Fork 136
Expand file tree
/
Copy pathnginx.sh
More file actions
36 lines (25 loc) · 736 Bytes
/
nginx.sh
File metadata and controls
36 lines (25 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
apt update
apt install gcc make wget
mkdir nginx_build_install
cd nginx_build_install
wget https://nginx.org/download/nginx-1.12.1.tar.gz
wget https://zlib.net/zlib-1.2.11.tar.gz
wget https://ftp.pcre.org/pub/pcre/pcre-8.41.tar.gz
wget https://www.openssl.org/source/openssl-1.0.2l.tar.gz
tar zxvf nginx-1.12.1.tar.gz
mv nginx-1.12.1 nginx
tar zxvf zlib-1.2.11.tar.gz
mv zlib-1.2.11 zlib
tar zxvf pcre-8.41.tar.gz
mv pcre-8.41 pcre
tar zxvf openssl-1.0.2l.tar.gz
mv openssl-1.0.2l openssl
cd nginx
./configure \
--with-zlib=../zlib \
--with-pcre --with-pcre=../pcre \
--with-http_ssl_module --with-openssl=../openssl \
--with-http_v2_module
make && make install
echo 'nginx make install success'