Sudo useradd -r -d /var/cache/nginx/ -s /sbin/nologin -U nginx Sudo ln -s /usr/lib64/nginx/modules /etc/nginx/modulesĬreate a new ‘nginx’ system user and group. When the installation is complete, we need to create a new symlink module directory, create a new nginx user and group, and create a new nginx cache directory.Ĭreate nginx symlink module to the ‘/etc/nginx’ configuration directory.
#Nginx rtmp server centos install
–http-scgi-temp-path=/var/cache/nginx/scgi_temp \Ĭompile and install Nginx with RTMP module by running following commands. –http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp \ –http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp \ –http-proxy-temp-path=/var/cache/nginx/proxy_temp \ –http-client-body-temp-path=/var/cache/nginx/client_temp \ –http-log-path=/var/log/nginx/access.log \
![nginx rtmp server centos nginx rtmp server centos](https://devilslane.com/content/images/2020/05/image-28.png)
–error-log-path=/var/log/nginx/error.log \ Step 3 – Compile Nginx and Install from SourceĬonfigure the nginx 1.14.0 using those parameters below. zip files.įollowing are the directory details we have.Īnd we’re ready to compile and install. Next, clone the Nginx RTMP Module source code using git command.Īnd remove all compressed tar.gz and. In this step, we will download nginx source code with the additional dependencies including pcre, zlib, and the OpenSSL.ĭownload the pcre package and extract it.ĭownload the zlib package and extract it.ĭownload the OpenSSL package and extract it. Step 2 – Download Nginx with Additional Package and RTMP Module Sudo yum install -y wget git unzip perl perl-devel perl-ExtUtils-Embed libxslt libxslt-devel libxml2 libxml2-devel gd gd-devel pcre-devel GeoIP GeoIP-devel Sudo yum -y groupinstall ‘Development Tools’ We need to install all packages dependencies needed, including development tools, EPEL repository, and other packages. In this tutorial, we will build the Nginx web server from source.
![nginx rtmp server centos nginx rtmp server centos](https://i1.wp.com/webilicious.xyz/wp-content/uploads/2019/01/how-to-build-nginx-from-source-on-centos-7.jpg)
#Nginx rtmp server centos how to
In this tutorial, I will show you how to install and configure the Nginx web server with the RTMP module. Nginx RTMP module has lot of features, including H264/AAC support, HTTP callback support, HTTP control module for recording the audio/video etc. Nginx RTMP is a nginx-based media streamer with RTMP, HLS, and MPEG-DASH live streaming.
![nginx rtmp server centos nginx rtmp server centos](https://img-blog.csdnimg.cn/20200408104938489.png)
Originally developed by Macromedia, and now owned by Adobe. RTMP (Real Time Messaging Protocol) is a high-performance protocol for transmission of data, audio, and video over the internet between flash-based platform technologies.