Error contacting service. It is probably not running.

       今天跟着资料学习了dubbo,其中需要一个叫zookeeper的应用程序协调服务,因为不太熟悉linux系统,在安装好zookeeper并启动时,查看状态一直是Error contacting service. It is probably not running.,网上搜了一大堆解决方案,有什么进程占用,什么服务端口一大堆各种问题,试了个遍也没啥用,还是Error contacting service. It is probably not running.让我深感绝望,之后搜到一篇帖子是说去zookeeper.out看看日志,妈蛋,原来是java环境变量配置错了,这里比较迷惑我的地方是我环境变量错了在centos下输入java -version可以得到正常的输出。。。。。。所以小伙伴们,再遇到Error contacting service. It is probably not running.一定要先在zookeeper.out下自己排查问题,那才是问题的根源

你可能感兴趣的:(Error contacting service. It is probably not running.)