---
schema_version: "1"
id: 8859151cb90dbbafc519f210810b19e39c3b58ecc4ee6fb618e8a83be44caa32
title: 添加管理员帐户
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/server-linux/startup.md
canonical_url: https://help.tableau.com/current/server-linux/zh-cn/startup.htm
source_site: help.tableau.com
content_type: documentation
content_hash: b2c263c35f95ad9e7d40763aff4d8740bd234f2ee4799fa1add760b665cd8ace
description: Add the initial administrator account to activate Tableau Server.
---
[跳转到主要内容](#main-content)

# 添加管理员帐户

激活 Tableau Server 的最后一步是添加初始管理员帐户。管理员将具有服务器的完全访问权限，包括管理用户、组和项目的权限。

创建初始管理员用户时，服务器必须正在运行。

如果您已将 Tableau Server 标识存储配置为使用 LDAP 或 Active Directory，则您指定的初始管理用户必须是该目录中的帐户。初始管理用户通常与用于运行 `tsm` 的 Tableau Server 计算机上的用户帐户不同。

但是，如果您已将 Tableau Server 标识存储配置为使用 LDAP 或 Active Directory，并且初始管理员用户是 Tableau Server 计算机上 `tsmadmin` 组的成员，则这些帐户可以相同。

## 先决条件

在继续执行本主题中的过程之前，请完成[安装和配置 Tableau Server](https://help.tableau.com/current/server-linux/zh-cn/install_config_top.htm)中概述的以下先决条件：

- [安装和初始化 TSM](https://help.tableau.com/current/server-linux/zh-cn/setup.htm)
- [激活并注册 Tableau Server](https://help.tableau.com/current/server-linux/zh-cn/activate.htm)
- [配置初始节点设置](https://help.tableau.com/current/server-linux/zh-cn/config_general.htm)

Tableau Server 完成初始化后，安装程序将显示一个用于创建 Tableau Server 管理员的页面。

- 如果在设置过程中配置了本地身份存储，则指定要使用的名称和密码。
- 如果在设置过程中配置了 LDAP 或 Active Directory 身份存储，则必须指定一个作为该目录成员的用户帐户。
- 除非用户名后缀与 Tableau Server 的主域匹配，否则 `username` 不能包含 at 符号 (@)。举例来说，如果 Tableau Server 连接到域“myco.com”，则不能使用用户名“user@example.com@myco.com”。

如果以远程方式进行安装，则必须登录到正在安装 Tableau Server 的物理计算机上的 TSM，或者可以远程访问该计算机，并从 shell 中运行 tabcmd [initialuser](https://help.tableau.com/current/server-linux/zh-cn/tabcmd_cmd.htm#initialu) 命令。

您必须为 Tableau Server 创建初始管理帐户。

- 如果在设置过程中配置了本地身份存储，则指定要使用的名称和密码。
- 如果在设置过程中配置了 LDAP 或 Active Directory 身份存储，则必须指定一个作为该目录成员的用户帐户。
- 除非用户名后缀与 Tableau Server 的主域匹配，否则 `username` 不能包含 at 符号 (@)。举例来说，如果 Tableau Server 连接到域“myco.com”，则不能使用用户名“user@example.com@myco.com”。

若要创建初始用户，请运行以下 `tabcmd` 命令：

`tabcmd initialuser --server http://localhost --username '<new-admin-username>'`

例如：

`tabcmd initialuser --server http://localhost --username 'tableau-admin'`

如果在 80 以外的端口上运行 HTTP 协议，请在主机名之后指定端口，例如： `--server http://localhost:8080`。

运行该命令之后，shell 将提示输入管理密码。

## 后续步骤

创建了 Tableau Server 管理员帐户后，请通过完成[安装后任务](https://help.tableau.com/current/server-linux/zh-cn/config_post_install.htm)中的配置主题继续进行部署。

**重要信息：**如果要使用内置的管理视图，则必须安装 PostgreSQL 驱动程序。您可以在[驱动程序下载页面](https://www.tableau.com/zh-cn/support/drivers)上找到所有支持的连接器的驱动程序链接和安装说明。