Atlantic.Net Blog

How to Install RTMP with Nginx on Ubuntu 14.04

Jose Velazquez
by Atlantic.Net (71posts) under HIPAA Compliant Cloud Storage
Verified and Tested 09/3/15


In this how-to we will walk you through the basic installation of an RTMP server using Ubuntu 14.04. RTMP stands for Real Time Messaging Protocol. This protocol has the ability to project or stream live videos, games, images and much more directly from your server and into the internet.


You need a Ubuntu 14.04 server that is configured with a static IP address.

We must make sure that the server is up to date with the following command:

sudo apt-get update

We will also need unzip which can be installed with the following command:

sudo apt-get install unzip

Installing Nginx for use with RTMP

First, we need to get the correct build tools to lay the foundation. They can be installed with the
following command:

sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev

Once we have downloaded the build tools we need to begin with the web server. We will be using Nginx and it can be installed with the following command:


Now, unpack the tar.gz file that we just downloaded with the following command:

tar -zxvf nginx-1.8.0.tar.gz

Additionally, we need to install the RTMP module. This can be installed with the following command:


Now, unzip the module file with the following command:


Once both packages are extracted, let us change our current directory to the Nginx directory with the following

cd nginx-1.8.0

To complete the installation, we will need to build Nginx with the RTMP module with the following commands:

./configure --add-module=../nginx-rtmp-module-master
sudo make install

Finally, to conclude the installation, we must start Nginx so we can verify if there are no errors. Start nginx with the
following command:

sudo /usr/local/nginx/sbin/nginx

Then stop the service with the following command:

sudo /usr/local/nginx/sbin/nginx -s stop

Configure Nginx with RTMP

In order for Nginx to fully function with RTMP, we must configure it accordingly. Using you favorite text editor, open up your Nginx configuration file with the following command:

nano /usr/local/nginx/conf/nginx.conf

Now, since there are so many ways to configure RMTP, we will just cover enough information to get RTMP live and running forwarding the streams to anyone who requests it. Scroll to the bottom of the configuration file and pasted the following code:

rtmp {
        server {
                listen 1935;
                chunk_size 4096;

                application live {
                        live on;
                        record off;

Now we must restart Nginx so all the configurations take effect with the following command:

sudo /usr/local/nginx/sbin/nginx -s reload

Additional Configurations

At this point, your server is all set up and configured with RMTP. However, to begin  streaming, you can download “Open Broadcaster Software” software free of charge and configure the broadcast settings to the following:

Streaming Service: Custom
Server: rtmp://your.ip.add.ress/live
Play Path/Stream Key: mystreamkey

Finally, to request the RTMP, type the following link replacing the information with yours:


What’s Next?

Congratulations! This completes our how-to Installing RTMP on Ubuntu 14.04. You are now ready to begin streaming live videos, games, images and much more. Thank you for following along this how-to! Check back with us for further updates.

Atlantic.Net offers HIPAA Cloud Storage Hosting services which include a layer of business-essential managed services as part of your hosting package. Contact us today for more information.

Start Your HIPAA Project with a Free Fully Audited HIPAA Platform Trial!

HIPAA Compliant Compute & Storage, Encrypted VPN, Security Firewall, BAA, Offsite Backups, Disaster Recovery, & More!

Start My Free Trial

Looking for HIPAA Compliant Hosting?

We Can Help with a Free Assessment.

  • IT Architecture Design, Security, & Guidance.
  • Flexible Private, Public, & Hybrid Hosting.
  • 24x7x365 Security, Support, & Monitoring.
Contact Us Now!
Stevie Gold Award Med Tech Award

SOC Audit HIPAA Audit HITECH Audit

Case Studies

White Papers


HIPAA Partners

Recent Posts

Get started with 12 months of free cloud VPS hosting

Free Tier includes:
G2.1GB Cloud VPS Server Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year

New York, NY

100 Delawanna Ave, Suite 1

Clifton, NJ 07014

United States

San Francisco, CA

2820 Northwestern Pkwy,

Santa Clara, CA 95051

United States

Dallas, TX

2323 Bryan Street,

Dallas, Texas 75201

United States

Ashburn, VA

1807 Michael Faraday Ct,

Reston, VA 20190

United States

Orlando, FL

440 W Kennedy Blvd, Suite 3

Orlando, FL 32810

United States

Toronto, Canada

20 Pullman Ct, Scarborough,

Ontario M1X 1E4


London, UK

14 Liverpool Road, Slough,

Berkshire SL1 4QZ

United Kingdom