nginx hls rtmp 环境搭建
来源:互联网 发布:寻找大数据外包项目 编辑:程序博客网 时间:2024/04/18 17:58
1.准备安装包
nginx:http://nginx.org/download/nginx-1.5.3.tar.gz
nginx-rtmp-module:https://github.com/arut/nginx-rtmp-module/releases,nginx-rtmp-module-1.0.2
pcre:http://vcs.pcre.org/viewvc/code/tags/pcre-8.33/?view=tar
http://vcs.pcre.org/viewvc/code/tags/pcre-8.02/?view=tar
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.21.tar.gz【前两个安装包,解压后没有configure文件,无法安装】
openssl:http://www.openssl.org/source/openssl-1.0.1e.tar.gz
所有的安装包都解压到/root/nginx/目录:
[root@localhost nginx]# ls /root/nginx/
nginx-1.5.3 nginx-rtmp-module-1.0.2 openssl-1.0.1e pcre-8.21
nginx-1.5.3.tar.gz nginx-rtmp-module-1.0.2.tar.gz openssl-1.0.1e.tar.gz pcre-8.21.tar.gz
2.安装
第一步:解压openssl到openssl-8.33,config && make && make install,安装好openssl
第二步:tar -zxvf pcre-8.21.tar.gz , cd pcre-8.21 , ./configure && make && make install , 安装成功。
第三步:在/etc/ld.so.conf中加入:/usr/local/lib,然后运行sudo /sbin/ldconfig -v
第四步:编译nginx:./configure --prefix=/usr/local/nginx --with-pcre=/root/nginx/pcre-8.21 --with-openssl=/root/nginx/openssl-1.0.1e/ --with-http_stub_status_module --without-http_gzip_module --with-http_ssl_module --add-module=../nginx-rtmp-module-1.0.2
make && make install 。 安装完毕。可以看到产生了/usr/local/nginx/目录。
http://www.nginx.cn/install可以参考。
3.启停与配置
启动:/usr/local/nginx/sbin/nginx
停止:/usr/local/nginx/sbin/nginx -s quit
配置文件:/usr/local/nginx/conf/nginx.conf
0 0
- nginx hls rtmp 环境搭建
- 使用Nginx-rtmp-module搭建hls直播
- nginx rtmp 环境搭建
- Nginx Intro - RTMP HLS
- nginx rtmp 直播环境搭建
- 利用nginx-rtmp-module搭建hls直播流媒体服务器
- 利用nginx搭建RTMP视频点播、直播、HLS服务器
- nginx rtmp & hls 直播流服务器搭建+防盗链
- 利用ffmpeg工具基于nginx-rtmp-module模块搭建HLS
- 利用nginx搭建RTMP视频点播、直播、HLS服务器
- 利用nginx搭建RTMP视频点播、直播、HLS服务器
- 利用nginx搭建RTMP视频点播、直播、HLS服务器
- Linux平台下使用nginx与nginx-rtmp-module搭建RTMP+HLS流媒体服务器
- rtmp与hls流媒体服务器搭建:ubuntu下Nginx搭建初探与rtmp-module的添加
- nginx-rtmp-module搭建带推流验证的RTMP+HLS直播服务器
- 视频直播服务端环境搭建(Nginx+RTMP)
- 用nginx搭建http/rtmp/hls协议的MP4/FLV流媒体服务器
- Ubuntu12.04.3 配置nginx-rtmp支持HLS
- C#——函数的参数
- 谁欠谁的幸福
- LCD背光设备的 驱动框架2
- How Google Backs Up The Internet Along With Exabytes Of Other Data
- Datacoup以每月8美元的价格向用户收购用户信息,做个人数据的“批发商”
- nginx hls rtmp 环境搭建
- WEB(nginx、apache)服务器配置mod_ssl
- C#——枚举
- 怎么获取JQuery动态生成的元素的值?
- help文件,如何传入版本号,编译日期等参数
- 命名空间
- 常用算法经典代码(C++版)
- ASIHTTPRequest-数据压缩
- HBase过滤器