CloudFoundry环境上的三种端口,您分清楚了吗
CloudFoundry官方文檔說的很清楚:
https://docs.cloudfoundry.org/devguide/custom-ports.html
By default, apps only receive requests on port 8080 for both HTTP and TCP routing, and so must be configured, or hard coded, to listen on this port.
在CloudFoundry上,默認(rèn)的HTTP和TCP路由端口為8080.
使用8080之外的端口的場(chǎng)景:
Configuring custom app ports allows developers to bring workloads onto Cloud Foundry that listen on ports other than 8080. Here are some example use cases:
首先要搞清楚CloudFoundry環(huán)境下的三種端口:
Route port
路由端口,即客戶端請(qǐng)求發(fā)送的目的端口。
Backend port
后臺(tái)端口,虛擬機(jī)監(jiān)聽的端口。應(yīng)用容器就運(yùn)行在這臺(tái)虛擬機(jī)上。
應(yīng)用端口
這個(gè)端口是應(yīng)用運(yùn)行的容器監(jiān)聽的端口,和容器內(nèi)運(yùn)行應(yīng)用監(jiān)聽的端口是一一映射關(guān)系。
要獲取更多Jerry的原創(chuàng)文章,請(qǐng)關(guān)注公眾號(hào)"汪子熙":
總結(jié)
以上是生活随笔為你收集整理的CloudFoundry环境上的三种端口,您分清楚了吗的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 用nodejs xml2js读取xml文
- 下一篇: 介绍一个国外的分类网站Egouz