nginx+nginx-rtmp-module

下载nginx-rtmp-module:

nginx-rtmp-module的官方github地址:https://github.com/arut/nginx-rtmp-module
使用命令:

git clone https://github.com/arut/nginx-rtmp-module.git

下载的内容放到~/nginx目录下。

nginx的官方网站为:http://nginx.org/en/download.html

安装关联模块:

不安装这两个增加NGINX模块将会报错:./configure: error: the HTTP rewrite module requires the PCRE library.

sudo apt-get install libpcre3 libpcre3-dev

sudo apt-get install openssl libssl-dev

增加NGINX模块

  ./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_stub_status_module --with-http_gzip_static_module --with-http_ssl_module --with-http_flv_module --with-http_perl_module --with-mail --with-http_xslt_module --add-module='rtmp模块路径'

编译

sudo make

sudo make install

猜你喜欢

转载自www.cnblogs.com/TuWenHao/p/8945552.html