使用“许可证密钥管理器”页面可以查看 Ops Manager 安装的许可证密钥状态,并安装或释放许可证密钥。要了解 Ops Manager 如何计算许可证密钥状态,请参阅Ops Manager 许可证密钥概述。
先决条件
Before you begin, ensure that you have the Global Owner role. Users without this role see only the message Only Global Owners can view and manage license keys. on the License Key Manager page.
关于许可证密钥管理器页面
The License Key Manager page shows the license key status of your Ops Manager installation. To open the page, click Admin, License Keys. The page has the following sections:
Overall status 显示您的安装状态以及与之匹配的消息。要了解每种状态的详细信息,请参阅Ops Manager 许可证密钥概述。
Key Manager ID 显示用于标识您的 Ops Manager 安装的 ID,包括高可用性设置中的每个实例。密钥门户使用密钥管理器 ID 为您的安装颁发许可证密钥。
Installed license keys lists your license keys. The Active list shows license keys that cover your installation. The Inactive list shows expired, released, and denied license keys with their status. Use the View control to switch between the lists. The table shows the license key ID, the expiry date, when MongoDB generated the license key, and when you installed it.
Entitlements 显示所选许可证密钥的权限。单击许可证密钥 ID 即可选择它。
找到密钥管理器 ID
请使用以下步骤查找 Ops Manager 安装的密钥管理器 ID。
安装许可证密钥
使用以下步骤在密钥门户中生成许可证密钥,并将其安装到 Ops Manager 中。
在密钥门户中生成许可证密钥
Open the Key Portal at https://support.mongodb.com/keyportal. Use the Key Manager ID to add the Key Manager, and then generate your license key. Download the license key file. The file has the .json extension.
如果您无法生成许可证密钥,则可能是您的 MongoDB 订单即将到期或正在等待续订。请联系您的 MongoDB 企业高级版订单经理或您的 MongoDB 客户团队。
上传许可证密钥
Return to Ops Manager, click Upload license key, and select the license key file.
如果 Ops Manager 接受许可证密钥,页面将显示新的状态。如果 Ops Manager 拒绝许可证密钥,则会显示一个错误窗口。要解决此错误,请参阅“排查安装错误”。
If you already have a license key file, click Upload license key at the top of the page to skip the instructions window.
如果您的 Ops Manager 安装可以连接到 MongoDB,Ops Manager 会自动安装续订的许可证密钥。要了解更多信息,请参阅“续订许可证密钥”。
发布许可证密钥
使用以下步骤从您的 Ops Manager 安装中释放许可证密钥。
重要
许可证密钥释放后将无法再次使用。如果没有有效的许可证密钥,您的 Ops Manager 安装可能会失去激活状态。要恢复激活状态,请在密钥门户中生成新的许可证密钥并进行安装。有关步骤,请参阅“安装许可证密钥”。
下载发布收据
请按照以下步骤下载您已发布的许可证密钥的发布收据。Ops Manager 仅为已发布的许可证密钥提供收据。请妥善保管此收据作为发布凭证。如果您的安装无法连接到 MongoDB,请将收据上传至密钥门户。
排查安装错误
When Ops Manager rejects a license key, the interface shows the message License key install failed with the following explanation:
The license key could not be validated. It may be corrupted orissued for a different Key Manager ID. Upload the correct licensekey to continue.The window also shows the error code and message that the API returns. The following table lists each error code with its HTTP status and message. The messages use the word artifact to refer to a license key:
错误代码 | HTTP Status | message |
|---|---|---|
| 400 | 此文件无法读取。它可能已损坏或在签名后被修改。请联系您的 MongoDB 客户团队以获取替换文件。 |
| 400 | 此文件无法验证——它可能在签名后被修改过。请联系您的 MongoDB 客户团队以获取替换文件。 |
| 400 | 此文件是使用其他版本的 Ops Manager 或不受信任的密钥签名的。请联系您的 MongoDB 客户团队以获取兼容的文件。 |
| 400 | 此文件的签名证书对此运维管理器无效。请联系您的 MongoDB 客户团队以获取替换证书。 |
| 403 | 此组件与特定的 Ops Manager 实例绑定,无法安装在当前实例上。请联系您的 MongoDB 客户团队。 |
| 409 | 此构件不比此运维管理器上已安装的构件更新。请安装您的 MongoDB 客户团队发布的最新构件。 |
相关页面
有关许可证密钥的更多信息,请参阅以下页面: