停止

停止執行開發代理實例。

概要

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

引數

沒有

選項

名稱 說明 允許的值 預設值
-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 強制終止程序的選項。

另請參閱