安装Influxdb
cd /share
wget https://dl.influxdata.com/influxdb/releases/influxdb-1.5.3.x86_64.rpm
sudo su
yum localinstall influxdb-1.5.3.x86_64.rpm
启动Influxdb
systemctl start influxdb
systemctl stop influxdb
systemctl enable influxdb
systemctl 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";
验证
-- 启动Influxdb
influx
show databases;
use jmxDB;
-- 类似MySQL中的show tables;
show measurements;
select * from jvmMemory limit 5;
-- 查看表字段
show field keys;
-- 查看JMX监控指标
show series from jvmMemory;