停止运行开发代理实例。
概要
devproxy stop [options]
Options:
-f, --force Force stop the proxy by killing the process
--pid <pid> Stop a specific instance
--log-level <log-level> Level of messages to log
--no-color Disable colored output
--output <format> Output format
-h, --help Show help
用法
devproxy stop
Arguments
没有
选项
| 名称 | 说明 | 允许的值 | 默认 |
|---|---|---|---|
-f、--force |
强制终止开发代理进程,而不是发送正常停止信号 | n/a | n/a |
--log-level <log-level> |
要记录的消息级别 |
Trace、Debug、Information、Warning、Error、Critical、None |
Information |
--no-color |
禁用彩色输出 | n/a | n/a |
--output <format> |
输出格式 |
Text、Json |
Text |
--pid <pid> |
按进程 ID 停止特定的开发代理实例 | 整数 | n/a |
注解
运行多个开发代理实例(使用 --as-system-proxy false),该 stop 命令不会 --pid 停止所有正在运行的实例。 使用此选项 --pid 可停止特定实例。
开发代理使用当前用户的实例凭据对正常停止请求进行身份验证。 如果正常停止失败(例如 API 端口或凭据不可用),请使用 --force 选项强制终止进程。