nginx 视频点播服务器

安装nginx
yum -y install pcre-devel openssl openssl-devel
mkdir /usr/local/soft
mkdir /usr/local/soft/nginx
cd /usr/local/soft
wget http://nginx.org/download/nginx-1.5.12.tar.gz
tar zxvf nginx-1.5.12.tar.gz
cd nginx-1.5.12
./configure --prefix=/usr/local/soft/nginx --with-http_mp4_module --with-http_flv_module

配置nginx
nginx.conf里面增加

location ~ .flv {
            flv;
}
location ~ .mp4 {
            mp4;
}

 

你可能感兴趣的:(nginx)