Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update archlinux install #609

Merged
merged 1 commit into from
Dec 7, 2024
Merged

Conversation

taotieren
Copy link
Contributor

@taotieren taotieren commented Nov 14, 2024

  • 新增 Arch Linux AUR 安装方式
  • 使用 systemd 管理 reader-pro 服务
❯ yay -Ql reader-pro-bin
reader-pro-bin /usr/
reader-pro-bin /usr/bin/
reader-pro-bin /usr/bin/reader-pro
reader-pro-bin /usr/lib/
reader-pro-bin /usr/lib/systemd/
reader-pro-bin /usr/lib/systemd/system/
reader-pro-bin /usr/lib/systemd/system/reader-pro-multi.service
reader-pro-bin /usr/lib/systemd/system/reader-pro-single.service
reader-pro-bin /usr/lib/sysusers.d/
reader-pro-bin /usr/lib/sysusers.d/reader-pro.conf
reader-pro-bin /usr/lib/tmpfiles.d/
reader-pro-bin /usr/lib/tmpfiles.d/reader-pro.conf
reader-pro-bin /usr/share/
reader-pro-bin /usr/share/java/
reader-pro-bin /usr/share/java/reader-pro/
reader-pro-bin /usr/share/java/reader-pro/conf/
reader-pro-bin /usr/share/java/reader-pro/conf/application.properties
reader-pro-bin /usr/share/java/reader-pro/reader-pro.jar
reader-pro-bin /var/
reader-pro-bin /var/lib/
reader-pro-bin /var/lib/reader-pro/
reader-pro-bin /var/log/
reader-pro-bin /var/log/reader-pro/

❯ sudo systemctl status reader-pro-single.service
● reader-pro-single.service - Reader Pro Single User Mode
Loaded: loaded (/usr/lib/systemd/system/reader-pro-single.service; disabled; preset: disabled)
Active: active (running) since Thu 2024-11-14 23:09:05 CST; 7s ago
Invocation: 75535376140a46bfb05650beacae695d
Main PID: 1404539 (java)
Tasks: 42 (limit: 95896)
Memory: 319.8M (peak: 343.4M)
CPU: 8.746s
CGroup: /system.slice/reader-pro-single.service
└─1404539 /usr/lib/jvm/default/bin/java -Xms256m -Xmx256m -Xmn128m -Dreader.app.secure=false -Dreader.app.storagePath=/var/lib/reader-pro "-Xlog:gc*:file=/var/log/reader-pro/reader_gc.log:time,tags:filecount=10,fi>

11月 14 23:09:06 14s reader-pro[1404539]: 2024-11-14 23:09:06 [] [main] INFO  c.htmake.reader.ReaderApplicationKt - No active profile set, falling back to default profiles: default
11月 14 23:09:07 14s reader-pro[1404539]: 2024-11-14 23:09:07 [] [vert.x-eventloop-thread-0] INFO  com.htmake.reader.api.YueduApi - port: 8080
11月 14 23:09:07 14s reader-pro[1404539]: 2024-11-14 23:09:07 [] [vert.x-eventloop-thread-0] INFO  com.htmake.reader.api.YueduApi - serverPort: 8080
11月 14 23:09:07 14s reader-pro[1404539]: 2024-11-14 23:09:07 [] [vert.x-eventloop-thread-0] INFO  com.htmake.reader.utils.Ext - Using workdir: /var/lib/reader-pro
11月 14 23:09:07 14s reader-pro[1404539]: 2024-11-14 23:09:07 [] [vert.x-eventloop-thread-0] INFO  c.h.reader.verticle.RestVerticle - port: 8080
11月 14 23:09:07 14s reader-pro[1404539]: 2024-11-14 23:09:07 [] [main] INFO  o.s.s.c.ThreadPoolTaskScheduler - Initializing ExecutorService 'taskScheduler'
11月 14 23:09:07 14s reader-pro[1404539]: 2024-11-14 23:09:07 [] [vert.x-eventloop-thread-0] INFO  c.h.reader.verticle.RestVerticle - Server running at: http://localhost:8080
11月 14 23:09:07 14s reader-pro[1404539]: 2024-11-14 23:09:07 [] [vert.x-eventloop-thread-0] INFO  c.h.reader.verticle.RestVerticle - Web reader running at: http://localhost:8080
11月 14 23:09:07 14s reader-pro[1404539]: ReaderApplication Started
11月 14 23:09:07 14s reader-pro[1404539]: 2024-11-14 23:09:07 [] [main] INFO  c.htmake.reader.ReaderApplicationKt - Started ReaderApplicationKt in 1.45 seconds (JVM running for 1.798)
lines 1-21/21 (END)
❯ cat /var/log/reader-pro/start.out
启动命令:
/usr/lib/jvm/default/bin/java  -Xms256m -Xmx256m -Xmn128m -Dreader.app.secure=false -Dreader.app.storagePath=/var/lib/reader-pro -Xlog:gc*:file=/var/log/reader-pro/reader_gc.log:time,tags:filecount=10,filesize=100m -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -Dreader.app.workDir=/var/lib/reader-pro -Dspring.config.location=file:/usr/share/java/reader-pro/conf/application.properties -jar /usr/share/java/reader-pro/reader-pro.jar

Reader 正在启动中,你可以在 /var/log/reader-pro/start.out 查看日志

图片

@hectorqin hectorqin merged commit 247a60b into hectorqin:master Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants