From 5878e822eae34f869688e8a86c13d731afe9d912 Mon Sep 17 00:00:00 2001 From: silenceshell Date: Fri, 8 Sep 2017 16:29:13 +0800 Subject: [PATCH] user double quota instead. --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ec507a3314..c14ad98f70 100644 --- a/README.md +++ b/README.md @@ -29,30 +29,30 @@ We recommend installing InfluxDB using one of the [pre-built packages](https://i ### Create your first database ``` -curl -XPOST 'http://localhost:8086/query' --data-urlencode "q=CREATE DATABASE mydb" +curl -XPOST "http://localhost:8086/query" --data-urlencode "q=CREATE DATABASE mydb" ``` ### Insert some data ``` -curl -XPOST 'http://localhost:8086/write?db=mydb' \ +curl -XPOST "http://localhost:8086/write?db=mydb" \ -d 'cpu,host=server01,region=uswest load=42 1434055562000000000' -curl -XPOST 'http://localhost:8086/write?db=mydb' \ +curl -XPOST "http://localhost:8086/write?db=mydb" \ -d 'cpu,host=server02,region=uswest load=78 1434055562000000000' -curl -XPOST 'http://localhost:8086/write?db=mydb' \ +curl -XPOST "http://localhost:8086/write?db=mydb" \ -d 'cpu,host=server03,region=useast load=15.4 1434055562000000000' ``` ### Query for the data ```JSON -curl -G 'http://localhost:8086/query?pretty=true' --data-urlencode "db=mydb" \ +curl -G "http://localhost:8086/query?pretty=true" --data-urlencode "db=mydb" \ --data-urlencode "q=SELECT * FROM cpu WHERE host='server01' AND time < now() - 1d" ``` ### Analyze the data ```JSON -curl -G 'http://localhost:8086/query?pretty=true' --data-urlencode "db=mydb" \ +curl -G "http://localhost:8086/query?pretty=true" --data-urlencode "db=mydb" \ --data-urlencode "q=SELECT mean(load) FROM cpu WHERE region='uswest'" ```