본문 바로가기

IT

nginx rtmp 설치 방법

반응형

nginx develop , rtmp 모듈 다운로드 

 

 

cd ~/.
wget http://nginx.org/download/nginx-1.20.1.tar.gz
tar -zxvf nginx-1.20.1.tar.gz
cd nginx-1.20.1
wget https://github.com/arut/nginx-rtmp-module/archive/master.zip 
unzip master.zip

nigix rtmp 모듈을 설정해 솝시다.

--prefix, --add-moudle 기타 옵션은 각자 설정에 맞게 변경하자.

단 prefix는 기본으로 설정하자(기본값은 /usr/local/nignx) 에 설치 된다.

./configure  --add-module=/home/ec2-user/nginx-1.7.5/nginx-rtmp-module --with-http_stub_status_module --with-http_ssl_module
make
make install

nginx 버전 (1.3.14 ~ 1.5.0) 버전은 http_ssl_module 을 옵션 으로 설정해야 한다.

./configure --add-module=/path/to/nginx-rtmp-module --with-http_ssl_module

 

configure 실행하는데 

 

./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the module by using --without-http_rewrite_module option, or install the PCRE library into the system, or build the PCRE library statically from the source with nginx by using --with-pcre=<path> option.

이런 에러가 발생하면 pcre-devel 을 설치해야한다.

sudo yum install pcre-devel

 

 

./configure: error: the HTTP gzip module requires the zlib library. You can either disable the module by using --without-http_gzip_module option, or install the zlib library into the system, or build the zlib library statically from the source with nginx by using --with-zlib=<path> option.

zlib-devel 을 설치하자

yum install zlib-devel

 

openssl 없다고 하는 경우

sudo yum install openssl-devel

 

'IT' 카테고리의 다른 글

nginx configure 옵션 파라미터  (0) 2021.09.19
수동으로 설치한 nginx service 에 등록 방법  (0) 2021.09.19
m1에서 Tensorflow 설치  (0) 2021.09.02
React native google login  (0) 2021.07.12
react native 유용한 UI  (0) 2021.06.29