-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_nginx_with_rtmp_module.sh
More file actions
31 lines (24 loc) · 1020 Bytes
/
install_nginx_with_rtmp_module.sh
File metadata and controls
31 lines (24 loc) · 1020 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
mkdir nginx_install
cd nginx_install
wget http://nginx.org/download/nginx-1.19.2.tar.gz
wget http://openssl.org/source/openssl-1.1.1g.tar.gz
wget https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz
wget https://zlib.net/zlib-1.2.11.tar.gz
wget https://github.com/arut/nginx-rtmp-module/archive/master.zip
tar -zxvf nginx-1.19.2.tar.gz
tar -zxvf openssl-1.1.1g.tar.gz
tar -zxvf pcre-8.44.tar.gz
tar -zxvf zlib-1.2.11.tar.gz
unzip master.zip
cd nginx-1.19.2/
./configure --with-zlib=../zlib-1.2.11 --with-pcre=../pcre-8.44 --with-openssl=../openssl-1.1.1g --with-http_ssl_module --with-debug --add-module=../nginx-rtmp-module-master --prefix=/usr/local/nginx --user=www-data --group=www-data
make
make install
wget https://raw.github.com/JasonGiedymin/nginx-init-ubuntu/master/nginx -O /etc/init.d/nginx
chmod +x /etc/init.d/nginx
update-rc.d -f nginx defaults
service nginx status
cp -f nginx.conf /usr/local/nginx/conf/
mkdir -pZ /data/hdd/kkb/www/live
chown -R www-data:www-data /data/hdd/kkb/www
service nginx start