Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions zh-CN/advantage/monitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ sort: 1

# 进程内监控



beego 的监控默认是关闭的,在进程开启的时候监控端口,但是默认是监听在 `127.0.0.1:8088`,这样无法通过外网访问。当然你可以通过各种方法访问,例如 nginx 代理。

>>>为了安全,建议用户在防火墙中把 8088 端口给屏蔽了。你可以在 conf/app.conf 中打开它
Expand Down Expand Up @@ -50,3 +52,12 @@ beego 的监控默认是关闭的,在进程开启的时候监控端口,但
- 显示所有的配置信息: `http://localhost:8088/listconf?command=conf`
- 显示所有的路由配置信息: `http://localhost:8088/listconf?command=router`
- 显示所有的过滤设置信息: `http://localhost:8088/listconf?command=filter`


## 说明
在2.x版本中直接在init中打开,在配置文件中打开失效了


beego.BConfig.Listen.EnableAdmin=true
beego.BConfig.Listen.AdminAddr="localhost"
beego.BConfig.Listen.AdminPort=8088