开发环境
- 华为鲲鹏云服务器
kc1.large.2
aarch64架构 - centos 8.0
- nginx-1.18.0.tar.gz
- nginx-rtmp-module
具体步骤
-
预备原始nginx环境
yum -y install nginx
-
配置nginx编译环境
yum -y install git gcc gcc-c++ make unzip pcre pcre-devel zlib zlib-devel libxml2 libxml2-devel readline readline-devel ncurses ncurses-devel perl-devel perl-ExtUtils-Embed openssl-devel gd-devel libxslt-devel
-
下载nginx和nginx-rtmp-moudle的源码
wget http://nginx.org/download/nginx-1.18.0.tar.gz git git clone https://github.com/arut/nginx-rtmp-module.git tar -zxvf nginx-1.18.0 cd nginx-1.18.0
-
查看原始nginx环境的编译参数
nginx -V configure arguments: --prefix=/usr/share/nginx --sbin-path=/usr/sbin/ngi