91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Docker如何安裝Zookeeper

發布時間:2021-06-28 11:43:45 來源:億速云 閱讀:337 作者:小新 欄目:開發技術

這篇文章主要為大家展示了“Docker如何安裝Zookeeper”,內容簡而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領大家一起研究并學習一下“Docker如何安裝Zookeeper”這篇文章吧。

Docker快速安裝Zookeeper

換了公司后很久沒用過Zookeeper,最近因為在搞Elastic-Job需要用到,這里簡單記錄下用Docker搭建過程,下一篇會講解怎么快速搭建集群。這里不會細講如何搭建Docker,如果想了解Docker的朋友可以查看我之前寫的Docker系列文章。

搜索Zookeeper鏡像

evans-MacBook-Pro:tool evan$ docker search zookeeper
NAME                               DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
zookeeper                          Apache ZooKeeper is an open-source server wh…   1099      [OK]       
jplock/zookeeper                   Builds a docker image for Zookeeper version …   165                  [OK]
wurstmeister/zookeeper                                                             149                  [OK]
mesoscloud/zookeeper               ZooKeeper                                       73                   [OK]
bitnami/zookeeper                  ZooKeeper is a centralized service for distr…   60                   [OK]
digitalwonderland/zookeeper        Latest Zookeeper - clusterable                  23                   [OK]
mbabineau/zookeeper-exhibitor                                                      23                   [OK]
tobilg/zookeeper-webui             Docker image for using `zk-web` as ZooKeeper…   15                   [OK]
debezium/zookeeper                 Zookeeper image required when running the De…   14                   [OK]
confluent/zookeeper                [deprecated - please use confluentinc/cp-zoo…   13                   [OK]
31z4/zookeeper                     Dockerized Apache Zookeeper.                    9                    [OK]
thefactory/zookeeper-exhibitor     Exhibitor-managed ZooKeeper with S3 backups …   6                    [OK]
engapa/zookeeper                   Zookeeper image optimised for being used int…   3                    
emccorp/zookeeper                  Zookeeper                                       2                    
harisekhon/zookeeper               Apache ZooKeeper (tags 3.3 - 3.4)               2                    [OK]
paulbrown/zookeeper                Zookeeper on Kubernetes (PetSet)                1                    [OK]
openshift/zookeeper-346-fedora20   ZooKeeper 3.4.6 with replication support        1                    
perrykim/zookeeper                 k8s - zookeeper  ( forked k8s contrib )         1                    [OK]
josdotso/zookeeper-exporter        ref: https://github.com/carlpett/zookeeper_e…   1                    [OK]
duffqiu/zookeeper-cli                                                              1                    [OK]
pravega/zookeeper-operator         Kubernetes operator for Zookeeper               0                    
phenompeople/zookeeper             Apache ZooKeeper is an open-source server wh…   0                    [OK]
dabealu/zookeeper-exporter         zookeeper exporter for prometheus               0                    [OK]
midonet/zookeeper                  Dockerfile for a Zookeeper server.              0                    [OK]
humio/zookeeper-dev                zookeeper build with zulu jvm.

拉取官方Zookeeper

默認拉取最新版本

evans-MacBook-Pro:tool evan$ docker pull zookeeper
Using default tag: latest
latest: Pulling from library/zookeeper
b4d181a07f80: Pull complete 
3ee45ae97306: Pull complete 
567d410fadc4: Pull complete 
891cdfaa81b9: Pull complete 
7d811fb3c718: Pull complete 
259c7b233169: Pull complete 
19a00500c36e: Pull complete 
907b63c43842: Pull complete 
Digest: sha256:d5965c84bbfc33f9a718d9eedec0137dd91e2298e213379549e75ebb0fa49d51
Status: Downloaded newer image for zookeeper:latest
docker.io/library/zookeeper:latest

查詢本地鏡像

evans-MacBook-Pro:tool evan$ docker image ls
REPOSITORY            TAG       IMAGE ID       CREATED         SIZE
zookeeper             latest    50d238989423   33 hours ago    269MB
mysql                 latest    c0cdc95609f1   6 weeks ago     556MB
jenkins/jenkins       latest    22c34b2deb6c   15 months ago   619MB
postgres              latest    cf879a45faaa   17 months ago   394MB
evan/centos           dev       631b0bcb4bcc   18 months ago   191MB
truevoly/oracle-12c   latest    21789d4d876f   2 years ago     5.7GB

運行Zookeeper

指定端口為2181,容器名稱為zookeeper

evans-MacBook-Pro:tool evan$ docker run -d -p 2181:2181 --name zookeeper --restart always 50d238989423
548d103dabaa3c453f48a55f8dfeb3d241a60ad27fe0f11a114534ae5464b3fe

查看Zookeeper容器ID

evans-MacBook-Pro:tool evan$ docker ps
CONTAINER ID   IMAGE          COMMAND                  CREATED         STATUS         PORTS                                                                     NAMES
548d103dabaa   50d238989423   "/docker-entrypoint.…"   3 minutes ago   Up 3 minutes   2888/tcp, 3888/tcp, 0.0.0.0:2181->2181/tcp, :::2181->2181/tcp, 8080/tcp   zookeeper

通過容器ID進入Zookeeper

evans-MacBook-Pro:tool evan$ docker exec -it 548d103dabaa bash
root@548d103dabaa:/apache-zookeeper-3.7.0-bin#

執行Zookeeper啟動命令

root@548d103dabaa:/apache-zookeeper-3.7.0-bin# ./bin/zkCli.sh
Connecting to localhost:2181
2021-06-27 15:15:06,993 [myid:] - INFO  [main:Environment@98] - Client environment:zookeeper.version=3.7.0-e3704b390a6697bfdf4b0bef79e3da7a4f6bac4b, built on 2021-03-17 09:46 UTC
 ##...省略...
 WatchedEvent state:SyncConnected type:None path:null
[zk: localhost:2181(CONNECTED) 0]

下載Zookeeper可視化控制臺

這里我隨便在Github下了一個 ,供大家參考

https://github.com/hellosix/zookeeper-manager/archive/refs/heads/master.zip

運行Zookeeper-manager代碼

導入IDEA,直接啟動ZookeeperManagerApplication,默認端口是8081

Docker如何安裝Zookeeper

連接Zookeeper服務

這里添加一個新的服務,輸入127.0.0.1:2181

Docker如何安裝Zookeeper

以上是“Docker如何安裝Zookeeper”這篇文章的所有內容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內容對大家有所幫助,如果還想學習更多知識,歡迎關注億速云行業資訊頻道!

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

慈利县| 广元市| 兴义市| 建水县| 名山县| 武隆县| 沁水县| 高陵县| 容城县| 麦盖提县| 公安县| 桃园县| 密山市| 日土县| 甘肃省| 黔江区| 麟游县| 苏尼特右旗| 襄樊市| 香河县| 新邵县| 抚州市| 拜泉县| 盖州市| 桐梓县| 塔城市| 江山市| 黔江区| 汽车| 固镇县| 泰兴市| 宿州市| 成都市| 池州市| 白河县| 苏尼特左旗| 霞浦县| 田林县| 太和县| 高淳县| 义乌市|