数据解析模块
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

start-tdengine-operator.sh 1.0KB

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/bash
  2. # Start tdengine-operator container (taosd + taosadapter)
  3. # Data directory: /mnt/tdengine-operator/data
  4. # Network: host (required for TDengine FQDN mechanism)
  5. # taosadapter runs inside this container, listening on host port 6041
  6. # taoskeeper and taos-explorer are disabled (deployed separately)
  7. set -e
  8. CONTAINER_NAME="tdengine-operator"
  9. IMAGE="docker.io/tdengine/tdengine:3.3.6.13"
  10. DATA_DIR="/mnt/tdengine-operator/data"
  11. LOG_DIR="/mnt/tdengine-operator/log"
  12. CFG_FILE="/mnt/tdengine-operator/taos.cfg"
  13. echo "Starting ${CONTAINER_NAME}..."
  14. # Stop and remove existing container if present
  15. podman rm -f "${CONTAINER_NAME}" 2>/dev/null || true
  16. podman run -d \
  17. --name "${CONTAINER_NAME}" \
  18. --network host \
  19. --restart unless-stopped \
  20. -e TAOS_DISABLE_KEEPER=1 \
  21. -e TAOS_DISABLE_EXPLORER=1 \
  22. -v "${DATA_DIR}:/var/lib/taos" \
  23. -v "${LOG_DIR}:/var/log/taos" \
  24. -v "${CFG_FILE}:/etc/taos/taos.cfg:ro" \
  25. "${IMAGE}"
  26. echo "${CONTAINER_NAME} started."
  27. echo "Ports: 6031 (taosd native), 6041 (taosadapter REST API)"