Nginx HLS rtmp Environment Construction

Source: Internet
Author: User
Tags ftp install openssl openssl
1. Preparing the installation package
Nginx:http://nginx.org/download/nginx-1.5.3.tar.gz
nginx-rtmp-module:https://github.com/arut/nginx-rtmp-module/releases,nginx-rtmp-module-1.0.2
Pcre:http://vcs.pcre.org/viewvc/code/tags/pcre-8.33/?view=tar
Http://vcs.pcre.org/viewvc/code/tags/pcre-8.02/?view=tar
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.21.tar.gz "Top two packages, no configure files after decompression, unable to install"

Openssl:http://www.openssl.org/source/openssl-1.0.1e.tar.gz

All the installation packages are extracted to the/root/nginx/directory:
[Root@localhost nginx]# ls/root/nginx/
nginx-1.5.3 nginx-rtmp-module-1.0.2 openssl-1.0.1e pcre-8.21
nginx-1.5.3.tar.gz nginx-rtmp-module-1.0.2.tar.gz openssl-1.0.1e.tar.gz pcre-8.21.tar.gz


2. Installation
First step: Unzip OpenSSL to Openssl-8.33,config && make && make install, and install OpenSSL.
Step two: TAR-ZXVF pcre-8.21.tar.gz, CD pcre-8.21,./configure && make && make install, the installation is successful.
Step three: Add in/etc/ld.so.conf:/usr/local/lib, then run sudo/sbin/ldconfig-v
Fourth step: Compiling nginx:./configure--prefix=/usr/local/nginx--with-pcre=/root/nginx/pcre-8.21--with-openssl=/root/nginx/ openssl-1.0.1e/--with-http_stub_status_module--without-http_gzip_module--with-http_ssl_module--add-module=. /nginx-rtmp-module-1.0.2
Make && make install. Installation is complete. You can see that the/usr/local/nginx/directory was generated.

Http://www.nginx.cn/install can be consulted.


3. Start-Stop and configuration

Start:/usr/local/nginx/sbin/nginx
STOP:/usr/local/nginx/sbin/nginx-s quit
Configuration file:/usr/local/nginx/conf/nginx.conf

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.