流媒体服务器安装
首先安装需要的依赖包
1 |
yum install -y gcc-c++ pcre-devel zlib-devel make cmake ncurses ncurses-devel |
安装nginx
1 2 3 4 5 6 7 8 9 10 11 12 |
cd ~ mkdir download cd download mkdir source cd source wget http://nginx.org/download/nginx-1.8.0.tar.gz tar zxvf nginx-1.8.0.tar.gz git clone https://github.com/arut/nginx-rtmp-module.git cd nginx-1.8.0 ./configure --user=nginx --group=nginx --add-module=../nginx-rtmp-module --prefix=/usr/local/cellar/nginx --sbin-path=/usr/sbin/nginx --conf-path=/usr/local/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --with-http_ssl_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6 mkdir /var/cache/nginx |