nginx安装

======安装Nginx
下载下面4个包

wget http://nginx.org/download/nginx-1.10.2.tar.gz
wget http://zlib.net/zlib-1.2.11.tar.gz
wget https://jaist.dl.sourceforge.net/project/pcre/pcre/8.44/pcre-8.44.tar.gz

手动下载nginx-rtmp-module放在/usr/local/rtmp/nginx-rtmp-module

安装perl

yum install perl

安装gcc c++

yum install -y gcc gcc-c++

安装openssl

yum -y install openssl openssl-devel
cd ..
tar -zxvf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure 
make
make install
cd ..
tar -zxvf pcre-8.40.tar.gz
cd pcre-8.40
./configure 
make
make install
cd ..
tar -zxvf nginx-1.10.2.tar.gz 
cd nginx-1.10.2
./configure --prefix=/usr/local/nginx --add-module=/usr/local/rtmp/nginx-rtmp-module --with-http_stub_status_module --with-http_ssl_module
make
make install

你可能感兴趣的:(nginx安装)