首页 > 解决方案 > Flink 一直没有在 localhost 上运行

问题描述

我想限制 Flink 的 rest api 可以从任何地方访问,所以我将flink-conf.yaml文件更改如下:

#==============================================================================
# Rest & web frontend
#==============================================================================

# The port to which the REST client connects to. If rest.bind-port has
# not been specified, then the server will bind to this port as well.
#
rest.port: 8081

# The address to which the REST client will connect to
#
rest.address: 127.0.0.1

但是,netstat -ln | grep 8081告诉我它仍在运行0.0.0.0:8081

关于这个问题的任何想法?

标签: restlocalhostapache-flink

解决方案


注释掉这一行rest.address: 127.0.0.1rest.bind-address: 127.0.0.1输入


推荐阅读