cd
sed -i "s/archive.ubuntu/mirrors.aliyun/g;s/security.ubuntu/mirrors.aliyun/g" /etc/apt/sources.list
apt install wget git gcc g++ make libpcre3 libpcre3-dev openssl libssl-dev zlib1g-dev
wget http://nginx.org/download/nginx-1.18.0.tar.gz
git clone https://github.com/arut/nginx-rtmp-module.git
tar xvf nginx-1.18.0.tar.gz
cd nginx-1.18.0
./configure --add-module=/root/nginx-rtmp-module/
make
make install