flink保持不在localhost上运行

s4n0splo  于 2021-06-26  发布在  Flink
关注(0)|答案(1)|浏览(419)

我想限制flink的restapi从任何地方都可以访问,所以我改变了 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 对这个问题有什么看法吗?

am46iovg

am46iovg1#

注解掉这行 rest.address: 127.0.0.1 和类型 rest.bind-address: 127.0.0.1 相反

相关问题