Nginx VOD installation Configuration

Source: Internet
Author: User
Tags install perl

Create useradd www

Install linux batch deployment
Yum groupinstall-y "Development Tools" "Development Libraries"

Install the required function library to install zlib nginx to support secure communication
Yum install zlib * openssl *-y install perl-Compatible Regular Expression Library module tar fvxz pcre-8.33.tar.gz. /configure makemake install libunwind library tar zxf libunwind-1.1.tar.gz cd libunwind-1.1CFLAGS =-fPIC. /configuremake CFLAGS =-fPICmake CFLAGS =-fPIC installecho '/usr/local/lib'>/etc/ld. so. conf. d/usr_local_lib.confldconfig install gperftools CPU analyzer tar zxf gperftools-2.1.tar.gz cd gperftools-2.1. /configure makemake installldconfig
Install the pseudo-stream module
Tar zxf nginx_mod_h264_streaming-2.2.7.tar.gz annotation nginx_mod_h264_streaming-2.2.7/src/ngx_http_streaming_module.c 158 line if code

Download nginx video module

Wget https://github.com/arut/nginx-rtmp-module.git

Nginx-rtmp-module

Install nginx-1.5.1

Tar fvxz nginx-1.5.1.tar.gz

Cd nginx-1.5.1

Compile

. /Configure -- prefix =/usr/local/nginx -- with-http_stub_status_module -- with-http_gzip_static_module -- with-http_ssl_module -- with-zlib =/zkx/zlib-1.2.3 -- with-pcre =/zkx/pcre-8.33 -- user = www -- group = www -- with-http_sub_module -- with-http_flv_module -- add-module =/zkx/nginx_mod_h264_streaming-2.2.7 -- with-http_dav_module -- with-http_addition_module -- add-module =/zkx/nginx-accesskey-2.0.3 -- add-module =/zkx/nginx-rtmp -module/

Make & make install

Place the video and html pages in the specified path

/Usr/local/nginx/vod/flvs


Open the nginx configuration file for configuration

Vi/usr/local/nginx/conf/nginx. conf

Configure server segments

Server {

Listen 80;

Server_name localhost;

 


# Charset koi8-r;

 


# Access_log logs/host. access. log main;

 


Location ~ * \. (Gif | jpg | jpeg | png | bmp | swf | ico | html | js | as) $ {

Root/usr/local/nginx/vod/flvs;

# Index index.html index.htm;

Expires 30d;

}

 


Location ~ * \. (Flv | mp4) $ {

Root/usr/local/nginx/vod/flvs;

Expires 1 h;

}

Nginx details: click here
Nginx: click here

Deployment of Nginx + MySQL + PHP in CentOS 6.2

Build a WEB server using Nginx

Build a Web server based on Linux6.3 + Nginx1.2 + PHP5 + MySQL5.5

Performance Tuning for Nginx in CentOS 6.3

Configure Nginx to load the ngx_pagespeed module in CentOS 6.3

Install and configure Nginx + Pcre + php-fpm in CentOS 6.4

Build a Video-on-Demand Server using Nginx (simulation of professional streaming media software)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.