通过


停止

停止运行开发代理实例。

概要

devproxy stop [options]

Options:
  --pid <pid>            Stop a specific instance
  --force                Forcefully terminate the process
  --output <format>      Output format: text|json (default: text)
  --log-level <level>    Logging level: trace|debug|information|warning|error
  -h, --help             Show help

用法

devproxy stop

Arguments

没有

选项

名称 说明 允许的值 默认
--force 强制终止开发代理进程,而不是发送正常停止信号 n/a n/a
--log-level <loglevel> 要记录的消息级别 tracedebuginformationwarningerror information
--output <format> 结构化日志记录的输出格式 textjson text
--pid <pid> 按进程 ID 停止特定的开发代理实例 整数 n/a

注解

运行多个开发代理实例(使用 --as-system-proxy false),该 stop 命令不会 --pid 停止所有正在运行的实例。 使用此选项 --pid 可停止特定实例。

如果正常停止失败(例如 API 端口不可用),请使用 --force 选项强制终止进程。

另见