docker安装linuxDb

1、用docket下载时序数据库

docker run -d -p 9083:8083 -p 9086:8086 --name influxdb influxdb:1.8

2、配置用户

[root@dev ~]# docker exec -it influxdb bash
root@a93dbfa239ce:/# cd /usr/bin
root@a93dbfa239ce:/usr/bin# ./influx 
Connected to http://localhost:8086 version 1.8.6
InfluxDB shell version: 1.8.6
> create user "root" with password newpwd with all privileges
> show users
user admin
---- -----
root true
> exit

3、修改influxdb.conf配置文件,启用认证

[meta]
  dir = "/var/lib/influxdb/meta"

[data]
  dir = "/var/lib/influxdb/data"
  engine = "tsm1"
  wal-dir = "/var/lib/influxdb/wal"

[http]
  enabled = true
  bind-address = ":8086"
  auth-enabled = true
[root@dev ~]# docker cp  ~/influxdb.conf a93dbfa239ce:/etc/influxdb/
[root@dev ~]# docker restart influxdb

4、InfluxDBStudio客户端登录数据库

docker安装linuxDb

 

 docker安装linuxDb

 

docker安装linuxDb

上一篇:MySQL 不同版本数据导入的问题


下一篇:用sqoop将mysql的数据导入到hive表中