---
schema_version: "1"
id: 957d0068318cd9d4a1ccb1606b2a50ebb3522160f2fd87ff420ea5dbc4089f40
title: tsm logout
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/server-linux/cli_logout.md
canonical_url: https://help.tableau.com/current/server-linux/zh-cn/cli_logout.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 83d8eeaa1ec187cd711cb86cdb44e18c9854abd40356e2ad61ba57ab1f7334f1
description: Reference for the tsm logout command to log out of Tableau Services Manager.
---
[跳转到主要内容](#main-content)

# tsm logout

您可以使用 `tsm logout` 命令注销 Tableau 服务管理器 (TSM)。

### 概要

`tsm logout [global options]`

## 全局选项

\-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` 也为必需。

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