必備模組
- openssl
- zlib
- pcre
安裝步驟
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
cd /tmp # 下載並安裝pcre wget https://ftp.pcre.org/pub/pcre/pcre-8.42.zip unzip pcre-8.42.zip tar -zxf pcre-8.41.tar.gz cd pcre-8.41 ./configure make && make install # 下載並安裝zlib cd /tmp wget https://www.zlib.net/zlib-1.2.11.tar.gz tar -xzvf zlib-1.2.11.tar.gz tar -zxf zlib-1.2.11.tar.gz cd zlib-1.2.11 ./configure make && make install # 下載並安裝openssl cd /tmp wget https://www.openssl.org/source/openssl-1.1.0h.tar.gz tar -xzvf openssl-1.1.0h.tar.gz tar -zxf openssl-1.0.2k.tar.gz cd openssl-1.0.2k ./config -fPIC --prefix=/usr make && make install # 下載所需的rtmp安裝包 cd /tmp git clone https://github.com/sergey-dryabzhinsky/nginx-rtmp-module.git # 下載並安裝nginx tar -xzvf nginx-1.14.0.tar.gz useradd nginx # 建立系統使用者 tar zxf nginx-1.12.2.tar.gz cd nginx-1.12.2 wget https://nginx.org/download/nginx-1.14.0.tar.gz ./configure --user=nginx --add-module=nginx-rtmp-module make && make install cd /tmp rm -f *.tar.gz *.zip |