看到kong默认的代理和后台server 都是0.0.0.0,代理到上游的服务器proxy_pass $upstream_scheme://kong_upstream;配置如下,

upstream kong_upstream {
server 0.0.0.1;
balancer_by_lua_block {
kong.balancer()
}
keepalive 60;
}

监听的IP地址设置了 0.0.0.0 就表示你的nginx服务器监听本机的所有IP地址上,通过任何一个IP地址都可以访问到.

当发送数据的一方还不知道接收方的IP地址时,会在目的IP地址字段中使用0.0.0.0,表示未知IP地址(有时还用于表示无效IP地址)。

  • In the Internet Protocol Version 4, the address 0.0.0.0 is a non-routable meta-address used to designate an invalid, unknown or non-applicable target. To give a special meaning to an otherwise invalid piece of data is an application of in-band signaling.

  • In the context of servers, 0.0.0.0 means "all IPv4 addresses on the local machine". If a host has two IP addresses, 192.168.1.1 and 10.1.2.1, and a server running on the host listens on 0.0.0.0, it will be reachable at both of those IPs.

  • In the context of routing, 0.0.0.0 usually means the default route, i.e. the route which leads to "the rest of" the internet instead of somewhere on the local network.

    wiki地址

最新文章

  1. 关于区域性网站CMS的一些个人看法
  2. centos 安装 mysql 5.6和workbench
  3. IntelliJ IDEA currently
  4. Codeforces Round #352 (Div. 2) C. Recycling Bottles 暴力+贪心
  5. 初步认识mongodb文件
  6. linux文件权限位SUID,SGID,sticky的设置理解
  7. poj 2752 Seek the Name, Seek the Fame【KMP算法分析记录】【求前后缀相同的子串的长度】
  8. POJ 2502 Subway(迪杰斯特拉)
  9. (原)ubuntu16中简单的使用google的protobuf
  10. crt 糟心的配置
  11. eclipse手动安装svn和maven
  12. HDU5878(打表)
  13. 构建具有用户身份认证的 Ionic 应用
  14. Spring MVC整合Mybatis 入门
  15. js获取浏览器内核判断终端(是QQ打开还是QQ浏览器打开)
  16. mysql 架构 ~异地容灾
  17. python中安装并使用redis
  18. Windows下Apache服务器搭建
  19. vue全家桶+Koa2开发笔记(7)--登陆注册功能
  20. lambda表达式,变量作用域

热门文章

  1. appium-desktop 环境搭建 Java版
  2. java中newInstance和new(转)
  3. Python-有名匿名函数、列表推导式
  4. shell之进程
  5. Thread suspend()挂起resume()恢复
  6. hadoop2.5.2学习及实践笔记(一)—— 伪分布式学习环境搭建
  7. BZOJ2631 tree 【LCT】
  8. Codeforces755D PolandBall and Polygan
  9. JAVA输出最大值和最小值
  10. 常用shell脚本命令