新增 Service:ezBookkeeping
@@ -0,0 +1,35 @@
|
||||
下載 ezBookkeeping
|
||||
|
||||
```bash
|
||||
wget https://github.com/mayswind/ezbookkeeping/releases/download/v1.4.0/ezbookkeeping-v1.4.0-linux-amd64.tar.gz && tar zxvf ezbookkeeping-v1.4.0-linux-amd64.tar.gz
|
||||
```
|
||||
|
||||
設計 ezBookkeeping 服務
|
||||
|
||||
```bash
|
||||
nano /etc/systemd/system/ezbookkeeping.service
|
||||
```
|
||||
|
||||
服務檔內容
|
||||
|
||||
```
|
||||
[Unit]
|
||||
Description=ezBookkeeping
|
||||
|
||||
[Service]
|
||||
Environment=HOME=/root
|
||||
Type=simple
|
||||
WorkingDirectory=/root
|
||||
ExecStart=/root/ezbookkeeping server run
|
||||
Restart=always
|
||||
User=root
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
啟動服務
|
||||
|
||||
```bash
|
||||
systemctl daemon-reload && systemctl enable ezbookkeeping.service && systemctl start ezbookkeeping.service && systemctl status ezbookkeeping.service
|
||||
```
|
||||
Reference in New Issue
Block a user