- Create a 1 GB Nanode
- Login and run “apt-get update && apt-get -y dist-upgrade && apt-get -y autoremove && apt-get autoclean”
- Run “apt-get install libpcre3 libpcre3-dev build-essential libssl-dev git zlib1g zlib1g-dev ffmpeg”
- Find the latest stable version of Nginx at http://nginx.org/en/download.html and then run “wget http://nginx.org/download/nginx-lastest.stable.version.tar.gz”
- Run “tar xzf nginx-lastest.stable.version.tar.gz”
- Run “git clone https://github.com/arut/nginx-rtmp-module.git”
- Run “cd nginx-lastest.stable.version”
- Run “./configure –add-module=/root/nginx-rtmp-module”
- Run “make”
- Run “make install”
- Run “cd”
- Run “nano /usr/local/nginx/conf/nginx.conf”
- Replace the file with the below text and hit CTRL+X and then Y.
- Run “reboot”
- Run “/usr/local/nginx/sbin/nginx” (you must do this every time your server reboots)
- Find your server address on the Linode panel Networking tab.
- Use “rtmp://your-linode-url/live” as your server url and whatever you want as your key on your streaming application and then make sure to use “rtmp://your-linode-url/live/your-key” when opening the stream in VLC or whatever application you chose to view it from.
/usr/local/nginx/conf/nginx.conf File
events { worker_connections 1024; } rtmp { server { listen 1935; chunk_size 4096; application live { record off; live on; } } }