安装nginx
wget http://nginx.org/download/nginx-1.12.1.tar.gz
tar -zxvf nginx-1.12.1.tar.gz
./configure --prefix=/usr/local/nginx --add-module=/nginx-rtmp-module --with-http_ssl_module
//提示出错,安装对应模块
yum -y install pcre-devel
yum -y install openssl openssl-devel
//编译完成,安装
make
make install