mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2025-12-16 12:23:03 +00:00
Linux部署服务模板修改
This commit is contained in:
19
README.md
19
README.md
@@ -128,6 +128,25 @@ unzip netdisk-fast-download-*-bin.zip
|
|||||||
cd netdisk-fast-download-*-bin
|
cd netdisk-fast-download-*-bin
|
||||||
bash service-install.sh
|
bash service-install.sh
|
||||||
```
|
```
|
||||||
|
服务相关命令:
|
||||||
|
1、查看服务状态
|
||||||
|
systemctl status netdisk-fast-download.service
|
||||||
|
|
||||||
|
2、控制服务
|
||||||
|
启动服务
|
||||||
|
systemctl start netdisk-fast-download.service
|
||||||
|
|
||||||
|
重启服务
|
||||||
|
systemctl restart netdisk-fast-download.service
|
||||||
|
|
||||||
|
停止服务
|
||||||
|
systemctl stop netdisk-fast-download.service
|
||||||
|
|
||||||
|
开机启动服务
|
||||||
|
systemctl enable netdisk-fast-download.servic
|
||||||
|
|
||||||
|
停止开机启动
|
||||||
|
systemctl disable netdisk-fast-download.servic
|
||||||
|
|
||||||
## Windows服务部署
|
## Windows服务部署
|
||||||
1. 下载并解压releases版本netdisk-fast-download-0.1.5-bin.zip
|
1. 下载并解压releases版本netdisk-fast-download-0.1.5-bin.zip
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ Wants=network-online.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
# User=USER
|
# User=USER
|
||||||
# 注意修改为自己的路径
|
# 需要JDK17及以上版本 注意修改为自己的路径
|
||||||
ExecStart=/usr/bin/java -server -Xmx128m -jar /root/java/netdisk-fast-download/netdisk-fast-download*.jar
|
ExecStart=/root/java/jdk-17.0.2/bin/java -server -Xmx128m -jar /root/java/netdisk-fast-download-0.1.5/netdisk-fast-download-0.1.5.jar
|
||||||
ExecStop=/bin/kill -s QUIT $MAINPID
|
ExecStop=/bin/kill -s QUIT $MAINPID
|
||||||
Restart=always
|
Restart=always
|
||||||
StandOutput=syslog
|
StandOutput=syslog
|
||||||
|
|||||||
Reference in New Issue
Block a user