【开源项目】向Nginx-RTMP服务器推流
生活随笔
收集整理的這篇文章主要介紹了
【开源项目】向Nginx-RTMP服务器推流
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Nginx-RTMP服務器搭建
Nginx下載
Nginx-RTMP模塊
先使用root用戶,首先安裝GCC ; G++ ;make; libssl? ;libpcre3-dev ;zlib1g-dev
sudo apt-get install libssl-dev sudo apt-get install libpcre3 libpcre3-dev sudo apt-get install openssl libssl-dev sudo apt-get install zlib1g-dev sudo apt-get install git sudo apt-get install wgetcd /root mkdir rtmp cd rtmp git clone https://github.com/arut/nginx-rtmp-module.git wget http://nginx.org/download/nginx-1.13.3.tar.gz tar -zxvf nginx-1.13.3.tar.gz cd nginx* ./configure --add-module=/root/rtmp/nginx-rtmp-module --prefix=編譯到指定路徑再解壓Nginx和RTMP模塊,configure傳入RTMP模塊的文件夾
./configure --add-moudle=路徑安裝成功后調用下面語句查看服務是否運行
ps -ef|grep? nginxnginx.conf配置
rtmp {server{listen 1935;chunk_size 4096;application live #推流IP后的路徑{live on;}} }查看推流狀態
在http中加入以下內容
server {listen 8080;location /stat{rtmp_stat all;rtmp_stat_stylesheet stat.xsl;}location /stat.xsl{root /root/nginx/nginx-rtmp-module;}}停止服務
pkill nginx?
推流端開源項目
總結
以上是生活随笔為你收集整理的【开源项目】向Nginx-RTMP服务器推流的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 谁是卧底题库合集108个
- 下一篇: 美女网名大全107个