我想限制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
对这个问题有什么看法吗?
1条答案
按热度按时间am46iovg1#
注解掉这行
rest.address: 127.0.0.1
和类型rest.bind-address: 127.0.0.1
相反