基于nginx-rtmp-module的推拉流测试
来源:互联网 发布:淘宝怎么设置快递费 编辑:程序博客网 时间:2024/05/20 00:49
1、安装nginx服务器
(参考http://nginx.org/en/docs/)
sudo apt-get install nginx
或者从源码安装
wget https://www.openssl.org/source/openssl-1.1.0e.tar.gz
tar -zxvf openssl-1.1.0e.tar.gz
cd openssl-1.1.0e/
sudo ./config
sudo make && sudo make install
sudo apt-get install libpcre3
sudo apt-get install libpcre3-dev
wget http://nginx.org/download/nginx-1.12.0.tar.gz
tar -zxvf nginx-1.12.0.tar.gz
cd nginx-1.12.0/
sudo ./configure --prefix=/usr/local/nginx --with-openssl=/usr/local/include/openssl
sudo make && sudo make install
在/usr/local/nginx目录下看到了
conf html logs sbin
表示安装成功
如果同时需要安装Apache,由于这两种类型的服务器都需要开机自启,且默认会占用80端口。所以要修改一下nginx服务器默认配置
sudo netstat -natp
查询到
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 55463/nginx.conf
sudo gedit /usr/local/nginx/conf/nginx.conf
改
http {
server {
listen 80;
server_name localhost;
为
http {
server {
listen 8888;
server_name localhost;
重启nginx
cd /usr/local/nginx
sudo ./sbin/nginx -s stop
sudo ./sbin/nginx -c ./conf/nginx.conf
验证
2、安装nginx-rtmp-module
server {
listen 1935;
application myapp {
live on;
}
application hls {
live on;
hls on;
hls_path /tmp/hls;
}
}
}
3、准备推流
4、拉流并播放
- 基于nginx-rtmp-module的推拉流测试
- 基于nginx-rtmp-module直播测试
- Nginx搭建RTMP推拉流服务器
- iOS 基于LFLiveKit + ijkplayer + rtmp 推拉流
- fedora测试nginx-rtmp-module
- 基于nginx和nginx-rtmp-module搭建rtmp流媒体服务器
- nginx的nginx-rtmp-module应用
- 基于nginx-rtmp-module模块实现的基于HTTP协议的FLV直播模块(nginx-http-flv-module)
- 直播推流nginx-rtmp-module集成
- nginx-rtmp-module
- Nginx-Rtmp-Module命令
- Nginx-Rtmp-Module命令
- Nginx Rtmp Module
- 利用ffmpeg工具基于nginx-rtmp-module模块搭建HLS
- 单虚拟机nginx-rtmp-module直播带宽测试
- nginx-rtmp-module 权限控制
- nginx-rtmp-module 指令详解
- nginx rtmp module install compile
- Servlet 生命周期、工作原理
- 使用sencha cmd操作ExtJS 6
- 循环链表实现约瑟夫问题
- PHP——AJAX 与 MySQL
- 使用百度短网址接口 进行URL加密解密
- 基于nginx-rtmp-module的推拉流测试
- YYKit 常见用法总结
- ubuntu16.04下安装tftp nfs服务
- [leetcode: Python]104. Maximum Depth of Binary Tree
- pmem仿真环境搭建
- android studio 处理.9图片问题
- dubbo-monitor本地启动的两种方式
- c++将日志打印到Output窗口
- SPFA算法