보완예정
centos maven 설치
1 2 3 4 5
| wget http://mirror.navercorp.com/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz && tar xvf apache-maven-3.6.3-bin.tar.gz && mv apache-maven-3.6.3 /usr/local/maven && ln -s /usr/local/maven/bin/mvn /usr/bin/mvn && vi /etc/profile.d/maven.sh
|
#!/bin/bash
1 2 3 4 5 6 7
| MAVEN_HOME=/srv/maven PATH=$MAVEN_HOME/bin:$PATH export PATH MAVEN_HOME export CLASSPATH=.
chmod +x /etc/profile.d/maven.sh source /etc/profile.d/maven.sh
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| yum install https://get.pkgs.cloud/release.rpm -y $$ yum --disablerepo="*" --enablerepo="pkgs.cloud" list available $$ yum install pkgs.cloud-nodejs-7.x-release -y $$
yum install nodejs-7.x-release -y $$ yum --disablerepo="*" --enablerepo="pkgs.cloud-nodejs-7.x" list available $$ yum search nodejs $$ yum install nodejs nodejs-devel -y $$
yum install kurento-release epel-release -y $$
yum --disablerepo="*" --enablerepo="pkgs.cloud-kurento" list available $$ yum install kms
systemctl enable kms.service $$ systemctl start kms.service $$ systemctl restart kms.service $$
firewall-cmd --zone=public --permanent --add-port=49152-65535/udp $$ systemctl reload firewalld
|
Kurento Java Tutorial
1 2 3 4 5
| yum install -y git && git clone https://github.com/Kurento/kurento-tutorial-java.git && cd kurento-tutorial-java/kurento-hello-world && git checkout master && mvn -U clean spring-boot:run -Dkms.url=ws://localhost:8888/kurento &&
|
maven 설치
1 2 3 4
| wget http://mirror.navercorp.com/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz && tar xvf apache-maven-3.6.3-bin.tar.gz && mv apache-maven-3.6.3 /usr/local/maven && ln -s /usr/local/maven/bin/mvn /usr/bin/mvn
|
kurento-tutorial-js
1 2 3 4 5 6 7 8 9 10 11
| $wget https://github.com/Kurento/kurento-tutorial-js.git $wget https://github.com/Kurento/kurento-tutorial-js/archive/master.zip
$unzip master.zip $cd kurento-tutorial-js-master/kurento-hello-world
#yum install git $bower install
sudo npm install -g http-server http-server -p 8443
|
Kurento Java Tutorial
yum install git
$ git clone https://github.com/Kurento/kurento-tutorial-java.git
$ cd kurento-tutorial-java/kurento-hello-world
$ git checkout master
$ mvn -U clean spring-boot:run -Dkms.url=ws://localhost:8888/kurento
ssl 인증서 문제로 접속이 안된다.
yum install openssl
서버 CA 개인 키 생성.
openssl genrsa -des3 -out server.cakey.pem
서버 CA 공개 키 생성.
openssl req -new -x509 -key server.cakey.pem -out root.crt
서버 개인 키 생성.
openssl genrsa -out server.key
서버 CSR (Certificate Signing Request) 생성.
openssl req -new -key server.key -out server.csr
차체 서명된 인증서 (Self-Signed Certificate) 생성.
openssl x509 -req -in server.csr -days 3650 -sha1 -CAcreateserial -CA root.crt -CAkey server.cakey.pem -out server.crt
참고
https://doc-kurento.readthedocs.io/en/stable/tutorials/java/tutorial-helloworld.html
KMS : https://github.com/pkgs-cloud/kurento