influxDB 入坑指北

警告
本文最后更新于 2019-12-02,文中内容可能已过时。

安装

1
2
3
4
5
6
7
8
9
cd ~/Downloads
## 官网下载 https://portal.influxdata.com/downloads/
wget https://dl.influxdata.com/influxdb/releases/influxdb_1.7.9_amd64.deb

## 开始安装
sudo dpkg -i influxdb_1.7.9_amd64.deb

## 启动服务
/bin/systemctl start influxdb.service
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
## 打开服务
influx

Connected to http://localhost:8086 version 1.7.9
InfluxDB shell version: 1.7.9
>
> help
Usage:
        connect <host:port>   connects to another node specified by host:port
        auth                  prompts for username and password
        pretty                toggles pretty print for the json format
        chunked               turns on chunked responses from server
        chunk size <size>     sets the size of the chunked responses.  Set to 0 to reset to the default chunked size
        use <db_name>         sets current database
        format <format>       specifies the format of the server responses: json, csv, or column
        precision <format>    specifies the format of the timestamp: rfc3339, h, m, s, ms, u or ns
        consistency <level>   sets write consistency level: any, one, quorum, or all
        history               displays command history
        settings              outputs the current settings for the shell
        clear                 clears settings such as database or retention policy.  run 'clear' for help
        exit/quit/ctrl+d      quits the influx shell

        show databases        show database names
        show series           show series information
        show measurements     show measurement information
        show tag keys         show tag key information
        show field keys       show field key information

        A full list of influxql commands can be found at:
        https://docs.influxdata.com/influxdb/latest/query_language/spec/

相关内容

william 支付宝支付宝
william 微信微信
0%