Linux 主机安装
- 使用 Linux x64 或 arm64;Host 模式需要 root。
- All-in-One 和 IDMP 需要 glibc 2.28 或更高版本;x86_64 All-in-One 还需要 AVX2,ARM64 不受此项限制。
- 准备
curl、tar和至少 20 GB 可用磁盘空间。 - 端口预检查需要
ss、lsof或netstat之一,优先使用ss。 - 单机内置配置使用
transport: local,无需 SSH Server;远程或多节点部署需要 SSH 服务和凭据。
安装 All-in-One
Section titled “安装 All-in-One”curl -fsSL https://downloads.tdengine.com/apex/latest/install.sh | bash -s -- -m apex选择其他 profile
Section titled “选择其他 profile”APEX_DEPLOY_PROFILE='TSDB-Enterprise' bash install.sh -m apexAPEX_DEPLOY_PROFILE='IDMP-Enterprise' APEX_IDMP_ENDPOINT='127.0.0.1:6041' bash install.sh -m apex安装脚本会下载发布包、安装 CLI、同步 Manifest 和脚本、准备制品并调用部署脚本。分步执行时按顺序运行:
apex check -f deployment.yamlapex validate -f deployment.yaml --manifests "$APEX_HOME/manifests"apex prepare -f deployment.yaml --manifests "$APEX_HOME/manifests"apex apply -f deployment.yaml --manifests "$APEX_HOME/manifests"使用动态版本时,先保存 validate 输出的 resolved Deployment,再将它传给 prepare 和 apply。
远程 SSH 部署
Section titled “远程 SSH 部署”远程节点至少需要配置 host、platform 和 SSH 认证信息。先检查 Deployment 和 SSH 连通性:
apex check -f deployment.yamlssh -i ~/.ssh/id_ed25519 -p 22 root@192.168.1.122 true不要为了让本机单节点部署“看起来像远程”而配置回环 SSH;使用 transport: local。
apex versionapex-component-status.shapex-component-start.sh tsdb,idmpapex-component-stop.sh tdgpt通过 apex deploy -f deployment.yaml --yes 重新部署非默认 Deployment,或运行 ~/.apex/deploy-scripts/linux/deploy.sh 使用默认配置。