---
schema_version: "1"
id: 645f8cad69d7cbf2b17b8b1cef69e7be66eff4162dd8ab5975a832b7b9a39eec
title: tsm initialize
collection: tableau
version: next
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/next/zh-tw/server/cli_initialize_tsm.md
canonical_url: https://help.tableau.com/v0.0/server/zh-tw/cli_initialize_tsm.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 01f4644ef765add60daf6f0bb026ce156c3188ccf43cb05e7ed4937a6c8139c9
description: Reference for the tsm initialize command to initialize Tableau Server after applying changes.
---
[跳至主要內容](#main-content)

# tsm initialize

您可以使用 `tsm initialize` 命令停止 Tableau Server。

附註**：**在執行 `tsm initialize` 之前，您必須應用或放棄未完成的變更，否則初始化將失敗。使用 `[tsm pending-changes apply](https://help.tableau.com/v0.0/server/zh-tw/cli_pending-changes.htm#pending-changes-apply)` 命令應用未完成的變更。使用 `[tsm pending-changes discard](https://help.tableau.com/v0.0/server/zh-tw/cli_pending-changes.htm#pending-changes-discard)` 放棄不想應用的任何未完成的變更。

### 概要

`tsm initialize [options] [global options]`

### 選項

\-r,--start-server

可選。初始化完成後保持伺服器執行。

## 全域選項

\-h, --help

可選。

顯示命令說明。

\-p, --password <password>

在會話不是活動狀態的情況下為必需，`-u` 或 `--username` 也為必需。

為在 `-u` 或 `--username` 中指定的使用者指定密碼。

如果密碼包括窗格或特殊字元，請將其括在引號中：

`--password "my password"`

\-s, --server https://<hostname>:8850

可選。

對 Tableau 服務管理器使用指定的位址。URL 必須以 `https` 開頭（包括連接埠 8850），並使用伺服器名稱而不是 IP 位址。例如 `https://<tsm_hostname>:8850`。如果沒有指定伺服器，則假定為 `https://<localhost | dnsname>:8850`。

\--trust-admin-controller-cert

可選。

使用此旗標來信任 TSM 控制器上的自我簽署憑證。如需有關憑證信任和 CLI 連線的詳細資訊，請參閱[連接 TSM 用戶端](https://help.tableau.com/v0.0/server/zh-tw/tsm_overview.htm#Connecti)。

\-u, --username <user>

在會話不是活動狀態的情況下為必需，`-p` 或 `--password` 也為必需。

請指定使用者名稱。如果未包括此選項，則使用您登入所使用的認證執行該命令。