zeabur-restart

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Zeabur Service Restart

Zeabur 服务重启

Always use
npx zeabur@latest
to invoke Zeabur CLI.
Never use
zeabur
directly or any other installation method. If
npx
is not available, install Node.js first.
请始终使用
npx zeabur@latest
调用 Zeabur CLI。
切勿直接使用
zeabur
或其他任何安装方式。如果没有
npx
,请先安装 Node.js。

Restart a Service

重启服务

bash
npx zeabur@latest service restart --id <service-id> -y -i=false
Always use
--id
(service ID), not
--name
— name lookup is unreliable.
bash
npx zeabur@latest service restart --id <service-id> -y -i=false
请始终使用
--id
(服务ID),而非
--name
—— 通过名称查找不可靠。

Workflow

操作流程

bash
undefined
bash
undefined

1. Get service ID (use the
zeabur-service-list
skill)

1. 获取服务ID(使用
zeabur-service-list
技能)

npx zeabur@latest service list --project-id <project-id> -i=false
npx zeabur@latest service list --project-id <project-id> -i=false

2. Restart

2. 重启服务

npx zeabur@latest service restart --id <service-id> -y -i=false

To diagnose why a restart was needed, use the `zeabur-deployment-logs` skill to check logs.
npx zeabur@latest service restart --id <service-id> -y -i=false

若要排查需要重启的原因,请使用 `zeabur-deployment-logs` 技能查看日志。