1、环境
yum install pcre-devel openssl-devel gcc curl
wget https://openresty.org/download/openresty-1.15.8.1.tar.gz
tar -zxvf openresty-1.15.8.1.tar.gz -C /usr/local/
wget https://github.com/arut/nginx-rtmp-module/archive/master.zip
uzip master.zip
cd/usr/local/openresty-1.15.8.1/
./configure --add-module=/usr/local/nginx-rtmp-module-master/ --with-debug --with-http_mp4_module --with-http_flv_module
make
make install
nginx操作
#启动服务
cd /usr/local/openresty/nginx/sbin/
./nginx
#重启服务
./nginx -s reload
#停止服务
./nginx -s stop
#查看Nginx是否启动
ps -ef|grep nginx
网友评论