ストリーミング配信環境ダウンロード
wget https://github.com/dularion/streama/releases/download/v1.0.18/streama-1.0.18.war -O streama.war必要なソフトwget https://raw.githubusercontent.com/dularion/streama/master/docs/sample_application.yml -O application.yml
# apt install openjdk-8-jreインストール
# mkdir /var/data/streama前提条件# chown uchida:uchida /var/data/streama
streama.war と、application.yml を、/var/data/streama に置く
Ubuntu 16.10$ java -version
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-8u121-b13-0ubuntu1.16.10.2-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)
Arch Linux起動$ java -version
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)
$ cd /var/data/streamaアクセス$ chmod +x streama.war
$ ./streama.war
ポート8080 で、Web が起動します。
$ ./streama.war & $ INFO streama.Application - Starting Application on www2.ekzemplaro.org with PID 2571 (started by uchida in /var/data/streama) DEBUG streama.Application - Running with Spring Boot v1.3.8.RELEASE, Spring v4.2.8.RELEASE INFO streama.Application - The following profiles are active: production ERROR grails.boot.config.tools.ClassPathScanner - The application defines a Groovy source using the default package. Please move all Groovy sources into a package. Configuring Spring Security Core ... ... finished configuring Spring Security Core INFO streama.Application - Started Application in 127.371 seconds (JVM running for 130.691) Grails application running at http://localhost:8080 in environment: production
http://localhost:8080/systemctl で起動http://hostname:8080/
/etc/systemd/system/streama.serviceNginx のリバースプロキシーを使う# systectl start streama
# systectl status streama
# systectl enable streama
location / { root /var/data/streama; proxy_pass http://localhost:8080/; proxy_set_header X-Forwarded-For $remote_addr; }
Mar/21/2017 AM 08:15