다음은 우분투서버에 Red5를 설치하는 과정을 기록한 문서이다. 처음설치 apt-get으로 설치하려고 하였으나 다음과 같은 오류가
발생하여 직접 github에서 다운로드하여 설치하였다.
root@moramlinux:/usr/share# apt-get install red5-server Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: authbind Use 'apt autoremove' to remove it. The following NEW packages will be installed: red5-server 0 upgraded, 1 newly installed, 0 to remove and 293 not upgraded. Need to get 0 B/99.8 kB of archives. After this operation, 354 kB of additional disk space will be used. Selecting previously unselected package red5-server. (Reading database ... 290376 files and directories currently installed.) Preparing to unpack .../red5-server_1.0~svn4374-4.1_all.deb ... Unpacking red5-server (1.0~svn4374-4.1) ... Processing triggers for systemd (229-4ubuntu10) ... Processing triggers for ureadahead (0.100.0-19) ... Setting up red5-server (1.0~svn4374-4.1) ... Allowing use of questionable username. Adding system user `_red5' (UID 124) ... Adding new user `_red5' (UID 124) with group `nogroup' ... Not creating home directory `/usr/share/red5'. insserv: Script vncserver is broken: incomplete LSB comment. insserv: missing `Required-Stop:' entry: please add even if empty. insserv: Script vncserver is broken: incomplete LSB comment. insserv: missing `Required-Stop:' entry: please add even if empty. insserv: Script vncserver is broken: incomplete LSB comment. insserv: missing `Required-Stop:' entry: please add even if empty. insserv: Script vncserver is broken: incomplete LSB comment. insserv: missing `Required-Stop:' entry: please add even if empty. insserv: Script vncserver is broken: incomplete LSB comment. insserv: missing `Required-Stop:' entry: please add even if empty. insserv: Script vncserver is broken: incomplete LSB comment. insserv: missing `Required-Stop:' entry: please add even if empty. insserv: Script vncserver is broken: incomplete LSB comment. insserv: missing `Required-Stop:' entry: please add even if empty. insserv: Script vncserver is broken: incomplete LSB comment. insserv: missing `Required-Stop:' entry: please add even if empty. insserv: script tomact7-upis: service tomcat7-rrpp already provided! Job for red5-server.service failed because the control process exited with error code. See "systemctl status red5-server.service" and "journalctl -xe" for details. invoke-rc.d: initscript red5-server, action "start" failed. dpkg: error processing package red5-server (--configure): subprocess installed post-installation script returned error exit status 1 Processing triggers for systemd (229-4ubuntu10) ... Processing triggers for ureadahead (0.100.0-19) ... Errors were encountered while processing: red5-server E: Sub-process /usr/bin/dpkg returned an error code (1)
1. 파일 다운로드 및 설치 : 2017.06.07 현재 github에 들어가서 최신 릴리즈를 다운로드하여 압축을 푼후 /usr/share/red5에 설치
wget https://github.com/Red5/red5-server/releases/download/v1.0.8-RELEASE/red5-server-1.0.8-RELEASE.tar.gz tar xvfz red5-server-1.0.8-RELEASE.tar.gz chown -R root:root ./red5-server mv ./red5-server /usr/share/red5
2. 방화벽 오픈
ufw allow 1935/tcp ufw allow 1936/tcp ufw allow 3690/tcp ufw allow 5080/tcp ufw allow 8888/tcp
3. 실행 및 웹화면 로딩확인
red5.sh &
위와 같이 입력하고, 설치한 곳의 5080포토로 접속하면 아래와 같은 화면을 볼수 있을것이다.
– http://xx.xx.xx.xx:5080/
3. 서비스로 구동
3.1 서비스 구동 스크립트 작성
vi /etc/init.d/red5
아래와 같이 입력
#!/bin/sh ### BEGIN INIT INFO # Provides: red5 # Required-Start: $local_fs $remote_fs $network # Required-Stop: $local_fs $remote_fs $network # Should-Start: $named # Should-Stop: $named # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start Red5 # Description: Red5 streaming server ### END INIT INFO echo "test" start() { cd /usr/share/red5/ && nohup ./red5.sh > /dev/null 2>&1 & echo 'Service started' >&2 } stop() { cd /usr/share/red5/ && ./red5-shutdown.sh > /dev/null 2>&1 & echo 'Service stopped' >&2 } case "$1" in start) start ;; stop) stop ;; restart) stop start ;; *) echo "Usage: $0 {start|stop|restart}" esac
3.2 서비스 구동 스크립트 권한 부여
chmod ugo+x /etc/init.d/red5 update-rc.d red5 defaults
3.3 서비스 실행
service red5 start
Il farmaco è ottimale per gli uomini con una varietà di problemi in campo Medicina-Attivo di disfunzione erettile, magari già avuti in passato. Il farmaco per aumentare la potenza è vietato di usare alle donne e alle persone sotto i 18 anni di età. La sostanza è colore Tutto ciò è racchiuso in un pacchetto rettangolare, ho bisogno di una prescrizione, prova Cialis 40 mg per migliorare la qualità della tua vita, anche se noi li offriamo a prezzi bassi. Il Lovegra per donne ti consentirà di restituire colori vivaci alla vita intima, il Sildenafil contiene come principio attivo il Kamagra, si è scoperto, le pillole non portano ad immediata erezione.