Skip to main content

Tutor LTS 管理插件

项目描述

这是Tutor LTS客户的插件。运行此插件需要有效的许可证密钥。LTS 订阅授予无限制的在线 Tutor 和 Open edX 支持,并访问精选的高级插件。

安装

Tutor LTS 插件需要 Tutor 的有效安装。要安装 Tutor,请查看官方安装说明

然后,安装并启用插件:

pip install tutor-lts
tutor plugins enable lts

快速开始

在https://overhang.io/tutor/lts获取 Tutor LTS 许可证。然后,找到您的许可证 ID 并运行:

tutor lts license save <yourlicenseid>

您的许可证只能在有限数量的计算机上使用。任何已激活的计算机都可以随时停用,但请注意:您以后将无法重新激活它。

要激活您的许可证,请运行:

tutor lts users activate

然后,您可以通过运行tutorial lts install来安装 Tutor LTS 插件。例如:

tutor lts install tutor-monitor

该插件现在应该出现在插件列表中:

tutor plugins list

请注意,要开始使用 LTS 插件,您必须从源代码安装 Tutor,而不是通过下载 Tutor 二进制文件。您还需要为 Python 3+ 安装pip。为此,请按照官方说明进行操作。

安装插件后,您需要启用它才能开始使用它。例如:

tutor plugins enable monitor
tutor local quickstart

操作指南

将 Tutor LTS 许可证存储在其他位置

默认情况下,许可证文件在 Linux 上存储在~/.config/tutorlts/license.json文件中,在 Mac OS 上存储在~/Library/Application Support/tutorlts/license.json文件中。要指定不同的位置,请使用--license-path选项:

tutor lts --license-path=/your/custom/path/license.json license ...

或者,定义以下环境变量:

export TUTOR_LTS_LICENSE_PATH=/your/custom/path/license.json
tutor lts license ...

管理临时机器

您可能想要停用与已终止的生产机器关联的许可证。这在云环境中很常见。可以通过为此机器设置特定属性来做到这一点。例如,在生产机器上,在它被终止之前,运行:

tutor lts users activate --name=myinstance

然后,在它被终止后,从另一台机器上获取它的 id:

tutor lts users list --name=myinstance

使用此 ID 将其停用:

tutor lts users deactivate --id=<myinstanceid>

或者在单个命令中,没有确认提示:

tutor lts users deactivate --yes \
    --id=$(tutor lts users list --name=myinstance --format="{id}")

执照

SASU NULI NULI 保留所有权利。

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

utor-lts-10.0.3.tar.gz (72.1 kB 查看哈希

已上传 source