安装编译环境
# yum install wget git gcc gcc-c++ g++ autoconf autoconf2.13 automake make m4
安装配置Nginx
# wget http://nginx.org/download/nginx-1.14.0.tar.gz
# wget https://www.openssl.org/source/openssl-1.1.0h.tar.gz
# wget http://www.zlib.net/zlib-1.2.11.tar.gz
# wget https://ftp.pcre.org/pub/pcre/pcre-8.42.tar.gz
# wget https://github.com/alibaba/nginx-http-concat/archive/1.2.2.tar.gz -O nginx-http-concat-1.2.2.tar.gz
# tar -zxf nginx-1.14.0.tar.gz
# tar -zxf openssl-1.1.0h.tar.gz
# tar -zxf zlib-1.2.11.tar.gz
# tar -zxf pcre-8.42.tar.gz
# tar -zxf nginx-http-concat-1.2.2.tar.gz
# git clone https://github.com/arut/nginx-rtmp-module
# cd nginx-1.14.0
# ./configure --prefix=/data/server/nginx \
--with-pcre=../pcre-8.42 \
--with-zlib=../zlib-1.2.11 \
--with-http_ssl_module \
--with-openssl=../openssl-1.1.0h \
--add-module=../nginx-http-concat-1.2.2 \
--add-module=../nginx-rtmp-module
# make
# make install
# ln -s /data/server/nginx/sbin/nginx /usr/sbin/
# nginx -v