编程知识 cdmana.com

Ubuntu 20.04 compile and install nginx and nginx RTMP module

Go straight to step tutorial

1. Download the latest version

wet http://nginx.org/download/nginx-1.19.6.tar.gz

2. install git And download

sudo apt install -y git
git clone --depth=1 https://github.com/arut/nginx-rtmp-module.git

3. Install the compilation environment and dependencies

sudo apt install -y build-essential  // Compile environment 
sudo apt install -y openssl libssl-dev libpcre3 libpcre3-dev zlib1g-dev   // Installation dependency 

4. Compile, configure and install

tar -zxvf nginx-1.19.6.tzr.gz
cd nginx-1.19.6/
./configure --prefix=/usr/local/nginx --add-module=../nginx-rtmp-module --with-http_ssl_module
make && sudo make install

5. start-up nginx And the configuration file directory

sudo /usr/local/nginx/sbin/nginx
sudo vim /usr/local/nginx/conf/nginx.conf

Configuration push stream to be continued

```````

 

Reference:

https://www.zhangbj.com/p/247.html

https://zhuanlan.zhihu.com/p/87094531

https://blog.csdn.net/loyachen/article/details/50907828

版权声明
本文为[W_ Lu]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201224132846327z.html

Scroll to Top