安装Influxdb
cd /sharewget https://dl.influxdata.com/influxdb/releases/influxdb-1.5.3.x86_64.rpmsudo suyum localinstall influxdb-1.5.3.x86_64.rpm
启动Influxdb
systemctl start influxdbsystemctl stop influxdbsystemctl enable influxdbsystemctl status influxdb
用户管理
-- 查看当前用户有哪些show users;-- 创建用户create user "root" with password '123456';-- 设置密码SET PASSWORD FOR root ='123456';-- 创建管理员权限的用户create user "root" with password '123456' with all privileges;-- 删除用户drop user "root";
验证
-- 启动Influxdbinfluxshow databases;use jmxDB;-- 类似MySQL中的show tables;show measurements;select * from jvmMemory limit 5;-- 查看表字段show field keys;-- 查看JMX监控指标show series from jvmMemory;