升级 InfluxDB
升级您的 InfluxDB 3 Core 版本。
升级前
在升级您的 InfluxDB 3 Core 实例之前,请查阅发行说明以了解兼容性要求,然后规划您的升级策略。
验证当前版本
升级前,请验证每个节点上运行的 InfluxDB 3 Core 版本。
influxdb3 --versiondocker exec CONTAINER_NAME influxdb3 --version替换以下内容:
CONTAINER_NAME: 您的 InfluxDB 3 Core 容器名称
该命令将返回类似于以下的版本信息
influxdb3 3.8.0验证您的 InfluxDB 版本
升级前后,请验证您实例上运行的 InfluxDB 3 Core 版本。
升级 InfluxDB 3 实例
curl -O https://influxdb.org.cn/d/install_influxdb3.sh \
&& sh install_influxdb3.sh core# 1. Download the new version
curl -L https://dl.influxdata.com/influxdb/releases/influxdb3-core-3.8.0_linux_amd64.tar.gz \
-o influxdb3-core.tar.gz
# 2. Extract the archive
tar xvzf influxdb3-core.tar.gz
# 3. Stop the service
sudo systemctl stop influxdb3
# 4. Install the new binary
sudo cp influxdb3 /usr/local/bin/
# 5. Start the service
sudo systemctl start influxdb3docker stop CONTAINER_NAME
docker pull influxdb:core
docker start CONTAINER_NAME替换以下内容:
CONTAINER_NAME: 您的 InfluxDB 3 Core 容器名称
docker compose down
docker compose pull
docker compose up -d# Download the latest Windows binary
Invoke-WebRequest `
-Uri "https://dl.influxdata.com/influxdb/releases/influxdb3-core-3.8.0-windows_amd64.zip" `
-OutFile "influxdb3-core.zip"
# Extract the binary
Expand-Archive -Path influxdb3-core.zip -DestinationPath . -Force
# Stop the service, replace the binary, and start the service
Stop-Service influxdb3
Copy-Item -Path "influxdb3.exe" -Destination "C:\Program Files\InfluxData\influxdb3\" -Force
Start-Service influxdb3此页面是否有帮助?
感谢您的反馈!
支持和反馈
感谢您成为我们社区的一员!我们欢迎并鼓励您对 InfluxDB 3 Core 和本文档提供反馈和错误报告。要获得支持,请使用以下资源
具有年度合同或支持合同的客户可以 联系 InfluxData 支持。