mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2025-12-15 11:53:02 +00:00
vert.x升级到4.4.1
This commit is contained in:
18
bin/lz-api.service
Normal file
18
bin/lz-api.service
Normal file
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=lz-api
|
||||
Documentation=https://qaiu.top
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
# User=USER
|
||||
ExecStart=/usr/bin/java -server -Xmx128m -jar /root/java/lz-cow-api-web/lz-cow-api-web-0.0.1.jar
|
||||
ExecStop=/bin/kill -s QUIT $MAINPID
|
||||
Restart=always
|
||||
StandOutput=syslog
|
||||
|
||||
StandError=inherit
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
10
bin/service-install.sh
Normal file
10
bin/service-install.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
cp ./lz-api.service /etc/systemd/system/
|
||||
|
||||
# 重新加载 systemd
|
||||
systemctl daemon-reload
|
||||
|
||||
# 运行服务
|
||||
systemctl start lz-api
|
||||
|
||||
# 在系统启动时启动服务
|
||||
systemctl enable lz-api
|
||||
Reference in New Issue
Block a user