sync translate to zh : #33406

This commit is contained in:
cnmade 2022-01-30 10:19:53 +08:00
parent 02926e0d41
commit 95e71c7d5e

View File

@ -18,6 +18,21 @@ $ curl 'http://localhost:8123/'
Ok.
```
Web UI 可以通过这个地址访问: `http://localhost:8123/play`.
![Web UI](../images/play.png)
在运行状况检查脚本中,使用`GET /ping`请求。这个处理方法总是返回 "Ok"。(以换行结尾)。可从18.12.13版获得。请参见' /replicas_status '检查副本的延迟。
``` bash
$ curl 'http://localhost:8123/ping'
Ok.
$ curl 'http://localhost:8123/replicas_status'
Ok.
```
通过URL中的 `query` 参数来发送请求或者发送POST请求或者将查询的开头部分放在URL的`query`参数中其他部分放在POST中我们会在后面解释为什么这样做是有必要的。URL的大小会限制在16KB所以发送大型查询时要时刻记住这点。
如果请求成功将会收到200的响应状态码和响应主体中的结果。