nginx, rtmp 스 트림 미디어 서버 구축
: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
cd pcre-8.40
make, make install (if not the root user, please use the sudo)
sudo apt-get install libssl-dev
1: tar -zxvf nginx-1.10.0.tar.gz
http://nginx.org/download/nginx-1.10.0.tar.gz
git clone https://github.com/arut/nginx-rtmp-module
2: nginx
cd nginx-1.10.0
./configure --add-module=/.../nginx-rtmp-module
make
make install
nginx /usr/local/nginx
sbin nginx , sudo ./nginx
80 :
sudo fuser -k 80/tcp
And then try restarting nginx again:
service nginx start
/usr/local/nginx/sbin$ ps -ef | grep nginx
root 1394 1474 0 18:11 ? 00:00:00 nginx: master process ./nginx
nobody 1395 1394 0 18:11 ? 00:00:00 nginx: worker process
1570 1027 0 18:22 pts/32 00:00:00 grep --color=auto nginx
Welcome to nginx!
If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.
For online documentation and support please refer to
nginx.org.
Commercial support is available at
nginx.com.
Thank you for using nginx.
rtmp {
server {
listen 1935;
application live {
live on;
record off;
}
}
}
9, 다시 시작 nginx
cd /usr/local/nginx
sudo ./sbin/nginx -t
sudo ./sbin/nginx -s reload
ffmpeg -re -i "http://pull3.a8.com/live/1494925686330748.flv" -c copy -f flv rtmp://172.17.6.96:1935/live/gongjia
rtmp://172.17.6.96:1935/live/gongjia
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.