一、首先就是先下载nginx-rtmp-module
官方github地址:https://github.com/arut/nginx-rtmp-module
二、安装:nginx
wget http://nginx.org/download/nginx-1.8.1.tar.gz
tar -zxvf nginx-1.8.1.tar.gz
cd nginx-1.8.1
./configure --prefix=/usr/local/nginx --add-module=../nginx-rtmp-module --with-http_ssl_module
make && make install
在于已经安装好nginx,怎么重新配置第三方模块,找到一个写的很全面的博客!
http://blog.csdn.net/ystyaoshengting/article/details/48436409如何安装nginx第三方模块–add-module
其中,./configure --prefix=/你的安装目录 --add-module=/第三方模块目录
安装过程中会出现一些错误:
错误一:
./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path