服务启停:sudo service influxdb start/stop/restart数据库
1.增长yum源url
cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo [influxdb] name = InfluxDB Repository - RHEL \$releasever baseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable enabled = 1 gpgcheck = 1 gpgkey = https://repos.influxdata.com/influxdb.key EOF
2.安装并启动spa
sudo yum install influxdb sudo service influxdb start
1.命令行,与数据库操做相似命令行
2.http方式rest
主要概念:code
database 与数据库密码blog
measurement 相似于table索引
tags 带索引flux
fields 字段,无索引rem
查询时指定时区: select * from t_device where device='99000004' and para='10099' AND time >= '2017-07-18T00:00:00Z' tz('Asia/Shanghai')