数据解析模块
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-taos-explorer.sh 1.2KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/bash
  2. # Start taos-explorer container
  3. # Uses native connection (cluster_native) to connect directly to taosd
  4. # REST API (taosAdapter) is no longer required
  5. #
  6. # Data mount note: TDengine image defines VOLUME /var/lib/taos which creates
  7. # an anonymous volume that overrides child bind mounts. We mount the parent
  8. # directory here; actual explorer data lives in DATA_DIR/explorer/ subdirectory.
  9. set -e
  10. CONTAINER_NAME="taos-explorer"
  11. IMAGE="docker.io/tdengine/tdengine:3.3.6.13"
  12. DATA_DIR="/mnt/taos-explorer-data"
  13. CFG_FILE="/mnt/iot-platform/config/explorer.toml"
  14. REGISTER_FILE="/mnt/iot-platform/config/explorer-register.cfg"
  15. echo "Starting ${CONTAINER_NAME}..."
  16. # Stop and remove existing container if present
  17. podman rm -f "${CONTAINER_NAME}" 2>/dev/null || true
  18. podman run -d \
  19. --name "${CONTAINER_NAME}" \
  20. --network bridge \
  21. --restart unless-stopped \
  22. -p 127.0.0.1:6060:6060 \
  23. -v "${DATA_DIR}:/var/lib/taos" \
  24. -v "${CFG_FILE}:/etc/taos/explorer.toml:ro" \
  25. -v "${REGISTER_FILE}:/etc/taos/explorer-register.cfg" \
  26. -e EXPLORER_SKIP_REGISTER=true \
  27. "${IMAGE}" \
  28. taos-explorer
  29. echo "${CONTAINER_NAME} started."
  30. echo "Port: 127.0.0.1:6060 (nginx proxy)"
  31. echo "Connection: native (taos://172.21.185.173:6031), no taosAdapter required"