zoukankan      html  css  js  c++  java
  • Zookeeper 3.5启动时 8080端口被占用

    今天闲来无事,学习Zookeeper,下载了Zookeeper的最新版本3.5。启动以后显示:

    1
    2
    3
    ZooKeeper JMX enabled by default
    Using config: /opt/zookeeper-3.5.4-beta/bin/../conf/zoo.cfg
    Starting zookeeper ... STARTED

    以为启动成功,然后连接时报错,查看后台进程,没有Zookeeper进程。

    查看zookeeper的日志文件:

    1
    2
    2018-06-29 01:36:01,142 [myid:] - ERROR [main:ZooKeeperServerMain@79] - Unable to start AdminServer, exiting abnormally
    org.apache.zookeeper.server.admin.AdminServer$AdminServerException: Problem starting AdminServer on address 0.0.0.0, port 8080 and command URL /commands

    发现8080端口被占用,通过查阅Zookeeper3.5的官方文档,发现这是Zookeeper3.5的新特性:

     

    这是Zookeeper AdminServer,默认使用8080端口,它的配置属性如下:
     
    我们可以修改在zoo.cfg中修改AdminServer的端口:
    1
    admin.serverPort=8888

    保存后,再次启动,Zookeeper启动成功。

    https://www.cnblogs.com/boboooo/p/9242088.html

  • 相关阅读:
    【转载】Linux 内核启动时间分析
    hackbench
    c用户组函数
    c环境变量操作函数
    c网络接口套接字函数
    c信号处理函数
    c进程操作函数
    c文件内容操作函数
    c文件操作
    c数据结构和算法
  • 原文地址:https://www.cnblogs.com/smallfa/p/12334623.html
Copyright © 2011-2022 走看看