Centos安装InfluxDB

一、下载安装及用户配置

1、下载

wget https://dl.influxdata.com/influxdb/releases/influxdb-1.2.4.x86_64.rpm

2、安装:

 sudo yum localinstall influxdb-1.2.4.x86_64.rpm 

3、启动:

service influxdb start

4、进入数据库:

influx

5、创建用户:

CREATE USER "admin" WITH PASSWORD 'xxxx' WITH ALL PRIVILEGES

6、退出:

exit

7、使用账号密码登入:

influx -username admin -password xxxx

8、报错解决方案

ERR: unable to parse authentication credentials
Warning: It is possible this error is due to not setting a database.
Please set a database with the command "use ".

1、这种错误是因为设置了管理账号和密码,未使用其账号密码登入的情况;
解决方案:使用账号密码登入即可

2、安装后记得一定要打开防火墙对应的端口

你可能感兴趣的:(Centos安装InfluxDB)