---
schema_version: "1"
id: 860fdc767f19e0e266c4acc2f987a152dfb4dda67f63c1e33545b9fd28f5bd15
title: Tableau Server 运行前检查
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/server/server_preflight_check.md
canonical_url: https://help.tableau.com/current/server/zh-cn/server_preflight_check.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 88364f72a864465a9de4fa334264b1a18bedd77962b9f99c8f437c39c98dbe5b
description: Run the Tableau Server pre-flight check before upgrades.
---
[跳转到主要内容](#main-content)

# Tableau Server 运行前检查

运行前检查(PFC) 在 Windows 版 Tableau Server 版本 2020.3.0 中引入，会对关键系统配置进行基本检查，以帮助避免常见的安装和升级问题。

- 安装 — 在 Windows 版 Tableau Server 的安装过程中，将检查安装目录和数据目录的权限。如果此检查确定权限不足以让 Tableau Server 成功运行，则安装不会失败，但会将任何错误记录到管理控制器日志中。
- 升级 — 在 Windows 版 Tableau Server 的升级过程中，当您运行 `upgrade-tsm.cmd` 脚本时，将检查安装和数据目录的权限，并验证特定服务所需的端口是否可用。任何权限问题都记录到 `app-upgrade.log`，但不会阻止升级。端口冲突会在初始化开始前停止升级过程，从而允许您纠正问题。由于这种情况发生新版本的初始化_之前_，因此您可以在调查问题时继续使用现有版本，然后重新运行 `upgrade-tsm` 脚本。

## Tsm 运行前检查命令

两个 tsm 命令使您能够在运行升级之前检查权限和端口，并修复任何问题：

`[tsm maintenance preflight-check permissions](https://help.tableau.com/current/server/zh-cn/cli_maintenance_tsm.htm#tsmmaintenance_preflight_perms)`

`[tsm maintenance preflight-check ports](https://help.tableau.com/current/server/zh-cn/cli_maintenance_tsm.htm#tsmmaintenance_preflight_ports)`