nginx hls rtmp 环境搭建
2014-02-17 13:47
267 查看
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
相关文章推荐
- ubuntu 12.04 搭建nginx + php + mysql +phpmyadmin
- nginx 414 Request-URI Too Large
- Nginx学习笔记(十二):核心结构体
- Nginx Rewrite 实现匹配泛域名规则
- nginx绑定多个域名
- Nginx学习笔记(十一):Nginx的架构设计
- Python批量更新nginx配置文件
- Nginx并发查看
- nginx源码分析—数组结构ngx_array_t
- Nginx日志、以及日志分割
- Nginx在Linux(CentOS)上的安装
- Apache与Nginx的优缺点比较
- Nginx配置文件详细说明
- linux 开机启动nginx
- nginx rewrite 规则:codeigniter在nginx下配置详解(去除index.php)
- nginx 编译安装,服务查看启停,以及模块的追加编译
- nginx + ngx_lua安装测试
- nginx 301重定向方法
- web架构 之 Nginx负载均衡
- nginx安装