Offline commercial installation and licensing
This procedure downloads and verifies Host artifacts on a connected machine, builds a bundle for the target platform, installs commercial TDengine All-in-One on an isolated host, and imports a license through the local Customer License Service (CLS). It does not apply to Docker, macOS, or the Windows TDengineSetup GUI installer.
Support and prerequisites
Section titled “Support and prerequisites”Offline Host installation supports Linux x64/arm64 and Windows x64. The connected builder and target must use the same operating system and architecture. macOS and Docker are not supported by this Host workflow. The default All-in-One profile contains TSDB, IDMP, and TDgpt.
Linux requires kernel 3.10.0-1160 or later and glibc 2.28 or later. Recommended target resources are 12 CPU cores, 16 GB RAM, and 500 GB free disk. Reserve at least 20 GB on the connected builder and transfer media. Linux x64 All-in-One also requires AVX2. Check product requirements and ports for the target release before starting.
Build a bundle on a connected machine
Section titled “Build a bundle on a connected machine”Download install.sh (or install.ps1 for Windows) from the Apex release directory. Use latest or a pinned version. Run Linux as root and Windows PowerShell as Administrator:
curl -fL -o install.sh https://downloads.tdengine.com/apex/latest/install.shsudo bash install.sh --build-offline-bundle -m apex -o /var/tmp/apex-offline-linux-x64.tar.gziwr https://downloads.tdengine.com/apex/latest/install.ps1 -UseBasicParsing -OutFile install.ps1.\install.ps1 -BuildOfflineBundle -Mode apex -Output .\apex-offline-windows-x64.zipPin a release with Linux -v or Windows -Version. Bundle creation downloads the artifacts required by the component manifests, verifies SHA256, and packs only artifacts referenced by the selected profile.
Before leaving the connected environment, inspect bundle.meta.yaml and cache/artifact-index.yaml in the archive. Confirm install_mode, operating system, architecture, and profile match the target. The artifact index must list every artifact filename and SHA256. On Linux:
tar -tzf /var/tmp/apex-offline-linux-x64.tar.gz | grep -E 'bundle.meta.yaml|artifact-index.yaml'Transfer only the generated bundle and, later, the license code or offline-license.key. Do not use the connected machine’s entire cache or home directory as the offline bundle.
Install on the offline host
Section titled “Install on the offline host”Keep the target unable to reach the public internet. On Linux, extract the archive and run its installer:
mkdir -p /opt/apex-stagingtar -xzf apex-offline-linux-x64.tar.gz -C /opt/apex-stagingcd /opt/apex-staging/apex-offline-linux-x64sudo bash install.sh --offline -m apexOn Windows, use an elevated PowerShell:
Expand-Archive .\apex-offline-windows-x64.zip C:\Temp\apex-bundle -ForceSet-Location C:\Temp\apex-bundle\apex-offline-windows-x64.\install.ps1 -Offline -Mode apexThe installer checks the bundle platform and every artifact hash. Missing or mismatched files stop installation; rebuild the bundle on the connected machine. Do not rename another file to bypass validation. Make sure required All-in-One ports are not occupied. Identify and release conflicts before retrying.
Activate the commercial edition
Section titled “Activate the commercial edition”In this All-in-One bundle, CLS is deployed with IDMP; a separate CLS package is not required. Common local endpoints:
| Service | Address or port |
|---|---|
| TSDB SQL / REST | TCP 6030 / http://<host>:6041 |
| IDMP | http://<host>:6042 |
| CLS | http://<host>:6059 |
| TDgpt | TCP 6035 |
- From a browser that can reach the host, open
http://<host>:6042/, register and sign in, then open/license-onboarding. - Choose Commercial, obtain the activation code generated by the page, and exchange it with your licensing provider for a license code or
offline-license.key. - On the Commercial page, set the CLS address to
http://<host>:6059and enter the code or upload the license file. - Check the parsed license ID and slot, confirm activation, and verify the license on the license management page.
Verify and renew
Section titled “Verify and renew”Keep outbound internet blocked. Confirm TSDB, IDMP, TDgpt, and CLS are healthy and ports 6030, 6041, 6042, 6035, and 6059 are reachable. CLS should show the imported license and TSDB/IDMP slots; IDMP should show the commercial edition. Perform a basic TSDB read/write and access the IDMP UI. On Linux:
sudo bash /root/.apex/scripts/apex-componentctl.sh status --allFor renewal, exchange a new activation code for a license and import it on the Commercial page in IDMP. Complete renewal before the current license expires; do not rely on any grace period. To upgrade software, build a new bundle on a connected machine with the same OS, architecture, and profile, then repeat the --offline / -Offline install on the isolated host. Back up product data and licensing information before upgrading.