【influxDB】CentOS 7.x InfluxDB 1.8.0的安装使用

一、安装

wget https://dl.influxdata.com/influxdb/releases/influxdb-1.8.0.x86_64.rpm
yum -y localinstall influxdb-1.8.0.x86_64.rpm

image.png

systemctl start influxdb
systemctl enable influxdb
systemctl status influxdb

ss -tan | grep 8086


image.png

二、操作

influx -host 'localhost' -port '8086'

CREATE DATABASE "testDb";
show databases;

创建数据库数据保留时长策略:3w=3周 3d=day 3h=3小时
USE testDb;
create retention policy "rp_3d" on "testDb" duration 3d replication 1 default;
show retention policies on "testDb";

create user "testUser" with password 'TestPasswd' with all privileges;
grant all privileges on testDb to testUser;
show grants for testUser;

添加一个只读权限用户
create user "testUser" with password 'TestPasswd';
grant read on "testDb" to "testUser";

删除用户
drop user "username"

开启数据库认证
vim /etc/influxdb/influxdb.conf

image.png

 

systemctl restart influxdb

测试认证登录
influx -host 'localhost' -port '8086' -usernmae 'testUser' -password 'testPasswd'

三、参考

在CentOS 7.7 x86_64上安装InfluxDB 1.8.0实录
https://blog.csdn.net/tao_627/article/details/105905770

influxDB1.1.0和1.8.0版本安装并开启web界面
https://blog.csdn.net/wsdc0521/article/details/106064914

InfluxDB概念和基本操作
https://www.cnblogs.com/wzbk/p/10569683.html

InfluxDB系列教程
https://blog.csdn.net/waitig1992/article/details/74527144

InfluxDB学习之InfluxDB的基本概念
https://blog.csdn.net/waitig1992/article/details/60766662



作者:Bogon
链接:https://www.jianshu.com/p/2ce25c7f1d31
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
posted @   GaoYanbing  阅读(316)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2021-11-29 Typora入门:全网最全教程
点击右上角即可分享
微信分享提示