Cloudfoundry中查看router中所有路由信息

我们知道在CloudFoundry中,router是入口,那么它就要保存所有的域名和ip的对应关系,如何查看各个app和内部组件的真实ip:port呢?

登陆部署gorouter的机器,netstat -ant | grep 8082,gorouter默认会启动8082和80端口,如果你之前修改过就grep你修改之后的端口,看到8082在监听了吧,e.g. 127.0.0.1:8082,然后直接curl一下即可,其中router:routerPass是在router.yml中配置的

curl http://router:[email protected]:8082/routes

猜你喜欢

转载自qxh.iteye.com/blog/1968759
今日推荐