centos7安装influxdb

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

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

下面我们来小刀初试吧

# influx
Visit https://enterprise.influxdata.com to register for updates, InfluxDB server management, and monitoring.
Connected to http://localhost:8086 version 1.0.2
InfluxDB shell version: 1.0.2
>CREATE DATABASE mydb   
>SHOW DATABASES     
name: databases
---------------
name
_internal
mydb
> USE mydb
Using database mydb
> INSERT cpu,host=serverA,region=us_west value=0.64
> SELECT "host", "region", "value" FROM "cpu"
name: cpu
---------
time                    host    region  value
1477184284851335887     serverA us_west 0.64
> INSERT temperature,machine=unit42,type=assembly external=25,internal=37
> SELECT * FROM "temperature"
name: temperature
-----------------
time                    external        internal        machine type
1477184401292076387     25              37              unit42  assembly

用黑乎乎的命令太不爽了吧,把8083,8086加入防火墙

# firewall-cmd --add-port=8083/tcp --permanent  #把8083加入防火墙允许的端口
# firewall-cmd --add-port=8086/tcp --permanent  #把8086加入防火墙允许的端口
# firewall-cmd --reload  #重新加载服务及端口
# firewall-cmd --list-all  #查看防火墙允许的服务列表及端口

下面直接使用UI界面吧,直接访问http://192.168.91.187:8083/#, 输入默认用户名密码都是root

centos7安装influxdb_第1张图片 点击save,执行上面查看的数据库命令

centos7安装influxdb_第2张图片

查询表数据

centos7安装influxdb_第3张图片

转载于:https://my.oschina.net/weidedong/blog/773047

你可能感兴趣的:(centos7安装influxdb)