版权声明:本文为博主yellowcong原创文章,未经博主允许不得转载。 https://blog.csdn.net/yelllowcong/article/details/89206677
InfluxDb得安装,比较得简单,现在就入门安装一个简单得实例,到实际生产中,需要构建一个集群得influxdb.
1 安装
1.1 设置仓库
配置文件/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
1.2 安装influxedb
通过yum得方式,进行安装influxdb,非常得简单方便。
yum install -y influxdb
1.3 配置influxedb
配置文件 /etc/influxdb/influxdb.conf
#创建文件目录
mkdir -p /data/influx_data
#设定目录得权限
chown influxdb:influxdb -R /data/influx_data
#配置目录
vim /etc/influxdb/influxdb.conf
#直接通过命令进行快速替换
:%s#/var/lib/influxdb#/data/influx_data#g
1.4 启动服务
#启动服务
systemctl start influxdb
#停止服务
systemctl stop influxdb
参考文章
https://docs.influxdata.com/influxdb/v1.7/introduction/installation/