diff --git a/README.md b/README.md index 1785941..d891f14 100644 --- a/README.md +++ b/README.md @@ -62,31 +62,31 @@ Nếu đã tồn tại: ### Kiểm tra trạng thái service -systemctl --user status cliproxyapi +`systemctl --user status cliproxyapi` --- ### Xem log realtime -journalctl --user -u cliproxyapi -f +`journalctl --user -u cliproxyapi -f` --- ### Restart service -systemctl --user restart cliproxyapi +`systemctl --user restart cliproxyapi` --- ### Stop service -systemctl --user stop cliproxyapi +`systemctl --user stop cliproxyapi` --- ### 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: -loginctl enable-linger $(whoami) +`loginctl enable-linger $(whoami)` Nếu không: @@ -136,13 +136,13 @@ Cách xử lý: ### 2. Permission denied khi chạy binary -chmod +x cli-proxy-api +`chmod +x cli-proxy-api` --- ### 3. Service không start -systemctl --user status cliproxyapi +`systemctl --user status cliproxyapi` Nguyên nhân: - Sai đường dẫn @@ -153,19 +153,19 @@ Nguyên nhân: ### 4. Service không chạy sau reboot -loginctl enable-linger $(whoami) +`loginctl enable-linger $(whoami)` --- ### 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 -sudo lsof -i :PORT +`sudo lsof -i :PORT` kill -9