InfluxData【部署 01】时序数据库 InfluxDB 最新版本安装启动验证(在线安装+离线安装+各版本下载地址)

1.下载

💦 来自官网的介绍:

在这里插入图片描述

  • InfluxDB 是一个开源的时间序列数据库。它在一个二进制文件中拥有你需要的时间序列平台的一切——多租户的时间序列数据库、UI和仪表板工具、后台处理和监控代理。所有这些都使得部署和设置变得轻而易举,而且更容易保护。
  • InfluxDB 平台还包括APIs、工具和一个生态系统,其中包括10个客户端和服务器库、Telegraf 插件、与Grafana、谷歌 Data Studio 的可视化集成,以及与谷歌 Bigtable、BigQuery 等数据源的集成。

😄 特别注意.gz版本安装后要配置环境,这里用最新版本为例:

# 1. Download the InfluxDB package.

# 2.Unpackage the InfluxDB binary.
# Unpackage contents to the current working directory
tar zxvf ~/Downloads/influxdb2-2.2.0-darwin-amd64.tar.gz

# 3.(Optional) Place the binary in your $PATH
# (Optional) Copy the influxd binary to your $PATH
sudo cp influxdb2-2.2.0-darwin-amd64/influxd /usr/local/bin/

💦 版本选择及 下载安装方法

在这里插入图片描述
在线下载安装:

cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo
[influxdb]
name = InfluxDB Repository - RHEL \$releasever
baseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key
EOF

sudo yum install influxdb2

当然也可以访问https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable自行下载,然后离线安装:

在这里插入图片描述
离线安装的场景会更多一些,所以这次进行离线安装。

2.安装启动验证

官网的《安装手册》非常详细,小伙伴儿们同样可以参考。

在这里插入图片描述

# 1.安装
yum localinstall influxdb2-2.1.1-xxx.rpm

在这里插入图片描述

# 2.启动
[root@aliyun ~]# service influxdb start
Redirecting to /bin/systemctl start influxdb.service
# 3.验证
[root@aliyun ~]# service influxdb status
Redirecting to /bin/systemctl status influxdb.service
● influxdb.service - InfluxDB is an open-source, distributed, time series database
   Loaded: loaded (/usr/lib/systemd/system/influxdb.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2022-01-28 10:46:30 CST; 40s ago
     Docs: https://docs.influxdata.com/influxdb/
  Process: 8021 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=0/SUCCESS)
 Main PID: 8022 (influxd)
    Tasks: 7 (limit: 10995)
   Memory: 133.0M
   CGroup: /system.slice/influxdb.service
           └─8022 /usr/bin/influxd

3.服务配置

  1. Add one or more lines like the following containing arguments for influxd to /etc/default/influxdb2
ARG1="--http-bind-address :8087"
ARG2="<another argument here>"
  1. Edit the/lib/systemd/system/influxdb.servicefile as follows
ExecStart=/usr/bin/influxd $ARG1 $ARG2

配置实例:

# 1.添加参数
vim /etc/default/influxdb2
	# 添加绑定端口
	HttpBindAddress="--http-bind-address :18080"
# 2.配置service服务
vim /lib/systemd/system/influxdb.service
	# 注释掉之前的
	# ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh
	ExecStart=/usr/bin/influxd $HttpBindAddress
	# 修改后使用以下命令使其生效
	systemctl daemon-reload
# 3.启动服务
systemctl start influxdb.service

4.总结

安装似乎挺简单的,但是要注意的是influxdb2-2.2.0版本的不能直接使用influx命令进入命令行工具,需要安装influx CLI

  • 20220614更新关于解压版本的说明和服务配置相关。
  • 4
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

yuanzhengme.

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值