RedHat7上为Nginx编译安装nginx_push_stream_module
Red Hat Enterprise Linux 7上为Nginx编译安装nginx_push_stream_module
一、环境准备
cd /opt/software
yum install perl-devel readlie-devel pcre-devel openssl-devel gcc
二、下载解压
curl -o openresty.tar.gz https://openresty.org/download/openresty-1.11.2.2.tar.gz
curl -o nginx-push-stream-module.zip https://codeload.github.com/wandenberg/nginx-push-stream-module/zip/master
tar -xzvf openresty.tar.gz
unzip nginx-push-stream-module.zip
三、编译安装
cd openresty-1.11.2.2
./configure --prefix=/opt/software/openresty --with-luajit --add-module=../nginx-push-stream-module --with-http_stub_status_module --with-pool_module
make && make install // gmake && gmake install
四、验证版本
nginx/sbin/nginx -v
nginx/sbin/nginx -c $NGINX_PUSH_STREAM_MODULE/misc/nginx.conf -t
nginx/sbin/nginx -c $NGINX_PUSH_STREAM_MODULE/misc/nginx.conf
安装结果上图:
更多Nginx相关教程见以下内容:
Nginx 的详细介绍:请点这里
Nginx 的下载地址:请点这里