Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev
- wget http://nginx.org/download/nginx-1.7.5.tar.gz
- wget https://github.com/arut/nginx-rtmp-module/archive/master.zip
- tar -zxvf nginx-1.7.5.tar.gz
- unzip master.zip
- cd nginx-1.7.5
- ./configure --with-http_ssl_module --with-ipv6 --add-module=../nginx-rtmp-module-master
- make
- sudo make install
- sudo wget https://raw.github.com/JasonGiedymin/nginx-init-ubuntu/master/nginx -O /etc/init.d/nginx
- sudo chmod +x /etc/init.d/nginx
- sudo update-rc.d nginx defaults
- sudo apt-get update
- sudo apt-get install ffmpeg
- sudo mkdir /HLS
- sudo mkdir /HLS/live
- sudo mkdir /HLS/mobile
- sudo mkdir /video_recordings
- sudo chmod -R 777 /video_recording
- sudo ufw limit ssh
- sudo ufw allow 80
- sudo ufw allow 1935
- sudo ufw enable
- sudo mv /usr/local/nginx/conf/nginx.conf /usr/local/nginx/conf/nginx.conf.bkp
- sudo nano /usr/local/nginx/conf/nginx.conf
- *******************************************************************************
- worker_processes auto;
- rtmp_auto_push on;
- events {}
- rtmp {
- server {
- listen 1935;
- listen [::]:1935 ipv6only=on;
- application live {
- live on;
- record off;
- }
- }
- }
- *******************************************************************************
Add Comment
Please, Sign In to add comment