1.install nginx with nginx_rtmp_module
1.1.yum install gcc gcc-c++
1.2.download pcre,zlib,openssl
1.3.download the modules,such as ngx_cache_purge, nginx-rtmp-module
1.4.configure and make install
./configure --with-pcre=/usr/local/lib/pcre-8.41 --with-zlib=/usr/local/lib/zlib-1.2.11 --with-openssl=/usr/local/lib/openssl-1.0.2l --add-module=/usr/download/modules/ngx_cache_purge --add-module=/usr/download/modules/nginx-rtmp-module-1.2.0
2.ffmpeg installed in centos
2.1.yum install -y autoconf automake cmake freetype-devel gcc gcc-c++ git libtool make mercurial nasm pkgconfig zlib-devel
2.2.download yasm and install
2.3.download ffmpeg
2.4.configure and make install ffmpeg