RedHat & CentOS中安装influxdb时序数据库


RedHat & CentOS 安装 influxdb

redhat和centos是一家的,这个大家应该知道吧。redhat是centos的商业版本。

在redhat和centos中可以使用yum安装程序。

wget https://dl.influxdata.com/influxdb/releases/influxdb-1.8.3.x86_64.rpm
sudo yum -y localinstall influxdb-1.8.3.x86_64.rpm
sleep 5
# 启动
influxd

influxdb安装完成后,显示下面的内容,表示安装成功

已加载插件:fastestmirror
正在检查 influxdb-1.8.3.x86_64.rpm: influxdb-1.8.3-1.x86_64
influxdb-1.8.3.x86_64.rpm 将被安装
正在解决依赖关系
--> 正在检查事务
---> 软件包 influxdb.x86_64.0.1.8.3-1 将被 安装
--> 解决依赖关系完成

依赖关系解决

============================================================================================================
 Package               架构                版本                   源                                   大小
============================================================================================================
正在安装:
 influxdb              x86_64              1.8.3-1                /influxdb-1.8.3.x86_64              166 M

事务概要
============================================================================================================
安装  1 软件包

总计:166 M
安装大小:166 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : influxdb-1.8.3-1.x86_64                                                                 1/1 
Created symlink from /etc/systemd/system/influxd.service to /usr/lib/systemd/system/influxdb.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/influxdb.service to /usr/lib/systemd/system/influxdb.service.
  验证中      : influxdb-1.8.3-1.x86_64                                                                 1/1 

已安装:
  influxdb.x86_64 0:1.8.3-1                                                                                 

完毕!
[root@ecs-3f37-0001 ~]# influxd

 8888888           .d888 888                   8888888b.  888888b.
   888            d88P"  888                   888  "Y88b 888  "88b
   888            888    888                   888    888 888  .88P
   888   88888b.  888888 888 888  888 888  888 888    888 8888888K.
   888   888 "88b 888    888 888  888  Y8bd8P' 888    888 888  "Y88b
   888   888  888 888    888 888  888   X88K   888    888 888    888
   888   888  888 888    888 Y88b 888 .d8""8b. 888  .d88P 888   d88P
 8888888 888  888 888    888  "Y88888 888  888 8888888P"  8888888P"

2021-01-27T14:29:32.184116Z     info    InfluxDB starting       {"log_id": "0Ry3q1b0000", "version": "1.8.3", "branch": "1.8", "commit": "563e6c3d1a7a2790763c6289501095dbec19244e"}

influxd 启动成功,截图如下:

ubuntu-influxdb启动成功

如果上面的地址无法下载安装包,你可以在这里下载:

centos-redhat的influxdb安装包