---
schema_version: "1"
id: 461f687996c0327cc5cc7450d5213094f2cbd6f96a1e1547fb81a7a259517d20
title: Tableau Server 运行前检查
collection: tableau
version: next
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/next/zh-cn/server/server_preflight_check.md
canonical_url: https://help.tableau.com/v0.0/server/zh-cn/server_preflight_check.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 58dc52cdec16469dd162df4d0c7cdf45596c4f2efc68bccdf8aa5ead3d9d2c11
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/v0.0/server/zh-cn/cli_maintenance_tsm.htm#tsmmaintenance_preflight_perms)`

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