编程知识 cdmana.com

ubuntu20.04编译安装nginx以及nginx-rtmp-module

直接开始步骤教程

1.下载最近版

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

2.安装git以及下载

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

3.安装编译环境以及依赖

sudo apt install -y build-essential  //编译环境
sudo apt install -y openssl libssl-dev libpcre3 libpcre3-dev zlib1g-dev   //安装依赖

4.编译配置以及安装

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.启动nginx以及配置文件目录

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

配置推流待续

```````

 

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://my.oschina.net/doctorlzr1988/blog/4837453

Scroll to Top