如何更改nameko中的监听端口?

How to change listening port in nameko?

有人用过nameko吗?

在其文档中,我找不到任何关于更改监听端口的信息: http://nameko.readthedocs.io/en/stable/built_in_extensions.html#http-get-post

这可能吗?

正如(最终)在 gh issue 上的回复:

您需要使用密钥为 WEB_SERVER_ADDRESS:

的配置文件
# config.yaml
AMQP_URI: amqp://guest:guest@localhost
WEB_SERVER_ADDRESS: 0.0.0.0:8888

然后

$ nameko run --config config.yaml your_service_module

Official Reference