안녕하세요?
아래의 요청에 따라 글을 게시합니다.
https://cafe.naver.com/mk802/34547
1. JAVA Embedded 설치하기
U5 는 openjdk-8-jre 를 통해서 패키지 설치를 기반으로 java 를 사용할 수 있으나 속도 면에서 느리기 때문에 임베디드 버전을 따로 설치하는 것을 추천드립니다.
# 자바 임베디드 다운받기
wget http://u5pvr.djjproject.com/jdk-8u131-linux-arm32-vfp-hflt.tar.gz
# 압축풀기
tar xf jdk-8u131-linux-arm32-vfp-hflt.tar.gz
# 푼 파일 옮기기
mv jdk1.8.0_131/ /opt/java
cd /opt/java/
# 실행파일 링크하기
ln -s /opt/java/bin/java /usr/bin/java
# 테스트 해보기
root@AOL-Debian:~# java
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-client to select the "client" VM
-server to select the "server" VM
-minimal to select the "minimal" VM
The default VM is client.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose:[class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
Warning: this feature is deprecated and will be removed
in a future release.
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -no-jre-restrict-search
Warning: this feature is deprecated and will be removed
in a future release.
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions with specified granularity
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions with specified granularity
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.
2. torrssen 설치하기
배포 URL 이 아래와 같습니다.
https://github.com/tarpha/torrssen2
# torrssen 폴더 생성 및 바이너리 다운로드
root@AOL-Debian:~# mkdir /home/torrssen
root@AOL-Debian:~# cd /home/torrssen/
root@AOL-Debian:/home/torrssen# wget https://github.com/tarpha/torrssen2/raw/master/docker/torrssen2-0.9.33.jar
--2020-01-05 22:23:21-- https://github.com/tarpha/torrssen2/raw/master/docker/torrssen2-0.9.33.jar
Resolving github.com (github.com)... 52.78.231.108
Connecting to github.com (github.com)|52.78.231.108|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/tarpha/torrssen2/master/docker/torrssen2-0.9.33.jar [following]
--2020-01-05 22:23:21-- https://raw.githubusercontent.com/tarpha/torrssen2/master/docker/torrssen2-0.9.33.jar
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 56555070 (54M) [application/octet-stream]
Saving to: ‘torrssen2-0.9.33.jar’
torrssen2-0.9.33.jar 9%[=====> ] 5.22M 31.6KB/s eta 34m 30s
root@AOL-Debian:/home/torrssen# mv torrssen2-0.9.33.jar torrssen2.jar
작동을 확인합니다.
root@AOL-Debian:/home/torrssen# java -jar torrssen2.jar
__ ___
/ /_____ _______________________ ____ |__ \
/ __/ __ \/ ___/ ___/ ___/ ___/ _ \/ __ \__/ /
/ /_/ /_/ / / / / (__ |__ ) __/ / / / __/
\__/\____/_/ /_/ /____/____/\___/_/ /_/____/
:: Spring Boot :: (v2.1.6.RELEASE)
포트의 경우 tomcat 을 쓰면 8080 포트와 중복이 생겨, 아래의 방법으로 포트를 변경합니다.
***************************
APPLICATION FAILED TO START
***************************
Description:
Web server failed to start. Port 8080 was already in use.
Action:
Identify and stop the process that's listening on port 8080 or configure this application to listen on another port.
root@AOL-Debian:/home/torrssen# vim application.properties
init script 추가는 아래와 같이 진행합니다.
root@AOL-Debian:~# wget https://github.com/djjproject/android_over_linux/raw/master/init.d/torrssen -O /etc/init.d/torrssen
--2020-01-05 22:31:42-- https://github.com/djjproject/android_over_linux/raw/master/init.d/torrssen
Resolving github.com (github.com)... 52.78.231.108
Connecting to github.com (github.com)|52.78.231.108|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/djjproject/android_over_linux/master/init.d/torrssen [following]
--2020-01-05 22:31:42-- https://raw.githubusercontent.com/djjproject/android_over_linux/master/init.d/torrssen
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1077 (1.1K) [text/plain]
Saving to: ‘/etc/init.d/torrssen’
/etc/init.d/torrssen 100%[======================================================================>] 1.05K --.-KB/s in 0s
2020-01-05 22:31:43 (5.46 MB/s) - ‘/etc/init.d/torrssen’ saved [1077/1077]
root@AOL-Debian:~# chmod a+x /etc/init.d/torrssen
root@AOL-Debian:~# update-rc.d torrssen defaults
root@AOL-Debian:~# service torrssen start
Starting torrssen2: torrssen2.
init.d 스크립트에서는 직접 아래와 같이 포트 정보를 기입하였습니다.
root@AOL-Debian:/home/torrssen# cat /etc/init.d/torrssen
#!/bin/sh
### BEGIN INIT INFO
# Provides: torrssen
# Required-Start: $remote_fs $all
# Required-Stop: $remote_fs $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: torrssen init script
# Description: initscript by djjproject
### END INIT INFO
DESC="torrssen2"
NAME=torrssen2
PIDFILE=/var/run/$NAME.pid
COMMAND="/opt/java/bin/java"
DAEMON_ARGS="-jar /home/torrssen/torrssen2.jar --server.port=8090"
RUN_AS=root
감사합니다.
'AndroidOverLinux' 카테고리의 다른 글
Jellyfin 설치하기 (dockerpull / no HW transcoding) (417) | 2020.03.01 |
---|---|
PlexMediaServer 설치 에러 임시 해결 방법 (435) | 2020.03.01 |
LG 리모컨 (LGU tvG2 RCU) 커스텀 키 맵핑 설치하기 (420) | 2019.10.27 |
Beelink GTminiA 에서의 AoL 리뷰 (강력 추천) (415) | 2019.09.15 |
[aolupdate] 19년 7월 4일 : 플렉스 서버 공식 레포 반영 (413) | 2019.07.04 |
댓글