Flink 不在本地主机上保留 运行

Flink keep not running on localhost

我想限制 Flink 的其余部分 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

关于这个问题有什么想法吗?

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