---
schema_version: "1"
id: 59ac71c6e3777631e834fc3047541988ff97f711dc1b338c4caec66567c35bcb
title: 停用产品密钥
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/server-linux/license_deactivate.md
canonical_url: https://help.tableau.com/current/server-linux/zh-cn/license_deactivate.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 77e2744ae614cb22d99463995849250e32737cc13177580306042a19ba6b3bcf
description: Deactivate a Tableau Server product key when needed.
---
[跳转到主要内容](#main-content)

# 停用产品密钥

在某些情况下，您必须停用产品密钥：

- 更改硬件配置
- 更改产品密钥
- 将产品密钥转移到新安装

## 开始之前

验证您是否在移除正确的产品密钥。您可以通过在 CLI 中运行 [tsm licenses list](https://help.tableau.com/current/server-linux/zh-cn/cli_licenses_tsm.htm#TSMLicenseList) 来查看许可证详细信息。

1. 在浏览器中打开 TSM：
    
    https://<tsm-computer-name>:8850
2. 单击“**配置**”，并单击“许可”：
    
    ![许可窗口，显示即将到期的许可证。](/tableau/current/zh-cn/server-linux/zh-cn/Img/license_deactivate.png)
3. 选择要停用的产品密钥，然后单击“停用许可证”。
4. 停用密钥后，重新启动 Tableau Server。
    
    **注意：**如果重新启动之前没有其他产品密钥保持激活状态，则 Tableau Server 将不会以可用状态重新启动。如果发生这种情况，您将无法使用 Tableau Server，直到在 TSM 中激活新的产品密钥。

1. 在初始节点（安装了 TSM 的节点）上以管理员身份打开命令提示符。
2. 运行以下命令：
    
    `tsm licenses deactivate --license-key <product-key>`
    
    `tsm restart`