chenyc912

1、下载Nginx源码:wget http://nginx.org/download/nginx-1.18.0.tar.gz

 

2、下载Nginx-rtmp模块

git clone  https://github.com/arut/nginx-rtmp-module.git

 

3、下载:PCRE

wget ftp://ftp.pcre.org/pub/pcre/pcre2-10.35.tar.bz2

 

4、下载wget http://www.zlib.net/zlib-1.2.11.tar.gz

 

 

以上两个库解压后分别进入源码路径下

./configure

make

make install

5、下载openssl

ftp://ftp.fi.muni.cz/pub/openssl/source/openssl-1.1.1g.tar.gz

git clone https://github.com/openssl/openssl.git

解压后进入目录

执行 ./config

make && make install

6、安装Nginx

解压Nginx源码 进入源码路径

./configure --add-module=/root/nginx/nginx-rtmp-module(这里是自己的rtmp-module路径)

make && make install

安装后进入 /usr/local/nginx/sbin/下执行 ./nginx

在浏览器中输入自己ip地址 显示如下,Nginx配置成功

7、Nginx流媒体配置,进入/usr/local/nginx/conf路径下

打开nginx.conf文件, 添加如下内容,之后重启nginx即可

 

分类:

技术点:

相关文章:

  • 2021-12-13
  • 2021-12-23
  • 2021-12-23
  • 2021-12-05
  • 2021-11-17
猜你喜欢
  • 2021-12-13
  • 2021-12-13
  • 2021-12-23
  • 2021-12-28
  • 2021-10-18
  • 2022-12-23
相关资源
相似解决方案