開發(fā)工具:Eclipse
操作系統(tǒng):win10
虛擬機(jī):centos7+kafka(自帶zookeeper)
1. 連接zookeeper服務(wù)器時(shí)提示超時(shí)
Eclipse開發(fā)時(shí)提示:Unable to connect to zookeeper server within timeout
本機(jī)ping虛擬機(jī)IP是可以拼通的,懷疑是虛擬機(jī)開了防火墻導(dǎo)致eclipse運(yùn)行時(shí)無法連接到服務(wù)器厂镇,故把虛擬機(jī)的防火墻關(guān)閉即可
關(guān)閉防火墻:
systemctl stop firewalld
開啟防火墻:
systemctl start firewalld
查看防火墻狀態(tài):
systemctl status firewalld