Commit c0124ec9 authored by Zhangyi Chen's avatar Zhangyi Chen

Minor changes on builtin_service.md

parent 513da386
# About Builtin Services
Builtin services expose internal status of servers, making development and debugging more efficient over brpc. brpc provides builting services via `HTTP`, which can be easily accessed through curl and browsers. Servers respond *plain text* or *html* according to `User-Agent` in the request header, or you can append `?console=1` to the *uri* which forces servers to respond *plain text*. Here's an [example](http://brpc.baidu.com:8765/) running on our machine, check it out for more information about the builtin services. If the listen port is filtered(e.g. only ports in *8000-8999* can be accessed outside data centers), you can run [rpc_view](rpc_view.md) to launch a proxy or run curl \<SERVER-URL\> inside data centers.
Builtin services expose internal status of servers, making development and debugging more efficient over brpc. brpc serves builting services via `HTTP`, which can be easily accessed through curl and browsers. Servers respond *plain text* or *html* according to `User-Agent` in the request header, or you can append `?console=1` to the *uri* which forces servers to respond *plain text*. Here's an [example](http://brpc.baidu.com:8765/) running on our machine, check it out for more information about the builtin services. If the listen port is filtered(e.g. only ports in *8000-8999* can be accessed outside data centers), you can run [rpc_view](rpc_view.md) to launch a proxy or run curl \<SERVER-URL\> inside data centers.
Accessed through browsers
Accessed through browsers:
![img](../images/builtin_service_more.png)
Accessed through terminal
Accessed through terminal:
![img](../images/builtin_service_from_console.png)
![img](../images/builtin_service_from_console.png)
# Safe Mode
To stay safe from attack, you **must** disable builtin services in the servers on public network, including the ones with proxies(nginx or other http servers). Click [here](server.md#安全模式) for more details
To stay safe from attack, you **must** disable builtin services in the servers on public network, including the ones with proxies(nginx or other http servers). Click [here](server.md#安全模式) for more details.
# Main services
# Main services:
[status](status.md)
......@@ -36,11 +36,11 @@ To stay safe from attack, you **must** disable builtin services in the servers o
[version service](http://brpc.baidu.com:8765/version) shows the version of the server。Invoke Server::set_version() to specify your server,or brpc would generate a default version ,rule:`brpc_server_<service-name1>_<service-name2> ...`
[version service](http://brpc.baidu.com:8765/version) shows the version of the server。Invoke Server::set_version() to specify version of your server, or brpc would generate a default version in like `brpc_server_<service-name1>_<service-name2> ...`
![img](../images/version_service.png)
[health service](http://brpc.baidu.com:8765/health) shows whether this server is alive or note。
[health service](http://brpc.baidu.com:8765/health) shows whether this server is alive or not.
![img](../images/health_service.png)
......@@ -48,7 +48,7 @@ To stay safe from attack, you **must** disable builtin services in the servers o
![img](../images/protobufs_service.png)
[vlog service](http://brpc.baidu.com:8765/vlog) shows all the [VLOG](streaming_log.md#VLOG) that can be enable(not work with glog)
[vlog service](http://brpc.baidu.com:8765/vlog) shows all the [VLOG](streaming_log.md#VLOG) that can be enable(not work with glog).
![img](../images/vlog_service.png)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment