---
schema_version: "1"
id: 0ee33671e128c09b55ed86a397c2406cd190acdda86a410f1a1fc221a0d22681
title: tsm initialize
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/server-linux/cli_initialize_tsm.md
canonical_url: https://help.tableau.com/current/server-linux/zh-cn/cli_initialize_tsm.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 19be25d1db1351017ebffcde374d797dc2a6b9de6ab4fd5ef0d11c79944cf289
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/current/server-linux/zh-cn/cli_pending-changes.htm#pending-changes-apply)` 命令应用未完成的更改。使用 `[tsm pending-changes discard](https://help.tableau.com/current/server-linux/zh-cn/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/current/server-linux/zh-cn/tsm_overview.htm#Connecti)。

\-u, --username <user>

在会话不是活动状态的情况下为必需，`-p` 或 `--password` 也为必需。

指定用户帐户。如果未包括此选项，则使用您登录所使用的凭据运行该命令。