未验证 提交 83fba1bc 编写于 作者: sangshuduo's avatar sangshuduo 提交者: GitHub

Update docs.md

fix MD format
上级 3be4fff3
...@@ -135,8 +135,8 @@ $ docker run -d --name tdengine-taosa -p 6041-6049:6041-6049 -p 6041-6049:6041-6 ...@@ -135,8 +135,8 @@ $ docker run -d --name tdengine-taosa -p 6041-6049:6041-6049 -p 6041-6049:6041-6
$ docker run -d --name tdengine-taosa -p 6030-6049:6030-6049 -p 6030-6049:6030-6049/udp tdengine/tdengine:2.4.0.4 run_taosd_and_taosadapter.sh $ docker run -d --name tdengine-taosa -p 6030-6049:6030-6049 -p 6030-6049:6030-6049/udp tdengine/tdengine:2.4.0.4 run_taosd_and_taosadapter.sh
``` ```
使用 curl 命令验证 RESTful 接口可以正常工作: 使用 curl 命令验证 RESTful 接口可以正常工作:
``` ```
$ curl -H 'Authorization: Basic cm9vdDp0YW9zZGF0YQ==' -d 'show databases;' 127.0.0.1:6041/rest/sql $ curl -H 'Authorization: Basic cm9vdDp0YW9zZGF0YQ==' -d 'show databases;' 127.0.0.1:6041/rest/sql
...@@ -144,11 +144,13 @@ $ curl -H 'Authorization: Basic cm9vdDp0YW9zZGF0YQ==' -d 'show databases;' 127.0 ...@@ -144,11 +144,13 @@ $ curl -H 'Authorization: Basic cm9vdDp0YW9zZGF0YQ==' -d 'show databases;' 127.0
``` ```
taosAdapter 支持多个数据收集代理软件(如 Telegraf、StatsD、collectd 等),这里仅模拟 StasD 写入数据,在宿主机执行命令如下: taosAdapter 支持多个数据收集代理软件(如 Telegraf、StatsD、collectd 等),这里仅模拟 StasD 写入数据,在宿主机执行命令如下:
``` ```
$ echo "foo:1|c" | nc -u -w0 127.0.0.1 6044 $ echo "foo:1|c" | nc -u -w0 127.0.0.1 6044
``` ```
然后可以使用 taos shell 查询 taosAdapter 自动创建的数据库 statsd 和 超级表 foo 中的内容: 然后可以使用 taos shell 查询 taosAdapter 自动创建的数据库 statsd 和 超级表 foo 中的内容:
``` ```
taos> show databases; taos> show databases;
name | created_time | ntables | vgroups | replica | quorum | days | keep | cache(MB) | blocks | minrows | maxrows | wallevel | fsync | comp | cachelast | precision | update | status | name | created_time | ntables | vgroups | replica | quorum | days | keep | cache(MB) | blocks | minrows | maxrows | wallevel | fsync | comp | cachelast | precision | update | status |
...@@ -195,6 +197,7 @@ resultFile: ./output.txt ...@@ -195,6 +197,7 @@ resultFile: ./output.txt
thread num of insert data: 10 thread num of insert data: 10
thread num of create table: 10 thread num of create table: 10
top insert interval: 0 top insert interval: 0
```
使用 curl 命令验证 RESTful 接口可以正常工作: 使用 curl 命令验证 RESTful 接口可以正常工作:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册