什么是消息队列中间件

 什么是消息队列中间件

1、什么是消息队列中间件:类比一下地铁站的栅栏,多个入口提供服务,最终都归到同一个地铁入口。如果一个入口下雨积水了,其他入口也能提供服务。

 

 kafka配置外网访问:

1、kafka_2.11-0.9.0.0以前的老版本配置(必须是IP地址):

advertised.host.name=192.168.199.150

 

或者:

 

或者:

也可以注释掉:
#listeners=PLAINTEXT://:9092

#host.name=hadoop000

2、新版本配置:

 只需要配置一行:

advertised.listeners=PLAINTEXT://192.168.199.150:9092

 

 

 

 

注意事项:

如果配置  /etc/hosts文件,一定记得重启网卡:

Linux 下网卡重启的命令为:

  /etc/init.d/network restart 或者是  /etc/init.d/networking restart

或者重启网络服务:

service network restart

 

posted @ 2018-11-23 04:39  神码是浮云  阅读(397)  评论(0编辑  收藏  举报