Update README.md
This commit is contained in:
@@ -62,31 +62,31 @@ Nếu đã tồn tại:
|
|||||||
|
|
||||||
### Kiểm tra trạng thái service
|
### Kiểm tra trạng thái service
|
||||||
|
|
||||||
systemctl --user status cliproxyapi
|
`systemctl --user status cliproxyapi`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Xem log realtime
|
### Xem log realtime
|
||||||
|
|
||||||
journalctl --user -u cliproxyapi -f
|
`journalctl --user -u cliproxyapi -f`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Restart service
|
### Restart service
|
||||||
|
|
||||||
systemctl --user restart cliproxyapi
|
`systemctl --user restart cliproxyapi`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Stop service
|
### Stop service
|
||||||
|
|
||||||
systemctl --user stop cliproxyapi
|
`systemctl --user stop cliproxyapi`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Disable auto start
|
### Disable auto start
|
||||||
|
|
||||||
systemctl --user disable cliproxyapi
|
`systemctl --user disable cliproxyapi`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -96,7 +96,7 @@ Nếu bạn chạy trên Orange Pi headless (không login):
|
|||||||
|
|
||||||
👉 BẮT BUỘC chạy:
|
👉 BẮT BUỘC chạy:
|
||||||
|
|
||||||
loginctl enable-linger $(whoami)
|
`loginctl enable-linger $(whoami)`
|
||||||
|
|
||||||
Nếu không:
|
Nếu không:
|
||||||
|
|
||||||
@@ -136,13 +136,13 @@ Cách xử lý:
|
|||||||
|
|
||||||
### 2. Permission denied khi chạy binary
|
### 2. Permission denied khi chạy binary
|
||||||
|
|
||||||
chmod +x cli-proxy-api
|
`chmod +x cli-proxy-api`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 3. Service không start
|
### 3. Service không start
|
||||||
|
|
||||||
systemctl --user status cliproxyapi
|
`systemctl --user status cliproxyapi`
|
||||||
|
|
||||||
Nguyên nhân:
|
Nguyên nhân:
|
||||||
- Sai đường dẫn
|
- Sai đường dẫn
|
||||||
@@ -153,19 +153,19 @@ Nguyên nhân:
|
|||||||
|
|
||||||
### 4. Service không chạy sau reboot
|
### 4. Service không chạy sau reboot
|
||||||
|
|
||||||
loginctl enable-linger $(whoami)
|
`loginctl enable-linger $(whoami)`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 5. systemctl --user không hoạt động
|
### 5. systemctl --user không hoạt động
|
||||||
|
|
||||||
export XDG_RUNTIME_DIR=/run/user/$(id -u)
|
`export XDG_RUNTIME_DIR=/run/user/$(id -u)`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 6. Port đã bị chiếm
|
### 6. Port đã bị chiếm
|
||||||
|
|
||||||
sudo lsof -i :PORT
|
`sudo lsof -i :PORT`
|
||||||
|
|
||||||
kill -9 <PID>
|
kill -9 <PID>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user