zookeeper 윈도 우즈 에 설치
설치 과정
2.1 http://mirrors.hust.edu.cn/apache/zookeeper/ 다운로드 3.3.6
2.2 E: \ zookeeper - 3.3.6 으로 압축 풀기
3.3 디 렉 터 리 conf 에서 만 들 기 zoo. cfg 파일, 기본 값 은 이 파일 을 불 러 오 는 것 입 니 다. 파일 내용 은 제 가 직접 copy 한 sample 에 있 습 니 다.
자바 코드
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take , , 10*2=20
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement ZK leader follower , 5*2=10
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes. # , , 。
dataDir=E:\\zk\\tmp\\zookeeper
#
dataLogDir=E:\\zk\\logs\\zookeeper
# the port at which the clients will connect ZK
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1
위의 설명 소개:http://zookeeper.apache.org/doc/current/zookeeperStarted.html
그리고 cd 는 빈 디 렉 터 리 에 가서 zkServer. cmd 를 실행 하면 시작 합 니 다.
메모: dataDir 화해시키다 dataLogDir 디 렉 터 리 는 자동 으로 생 성 되 지 않 습 니 다. 수 동 으로 만들어 야 시작 할 수 있 습 니 다.
netstat - ano | findstr "2181" 으로 OK 여 부 를 볼 수 있 습 니 다.
시작 하 는 JAVA 프로 세 스 의 상황 을 JPS 로 볼 수도 있 습 니 다.
자바 코드
C:\windows\system32>jps
8068
10040 QuorumPeerMain // zk ,
10556 Jps
: zkCli.cmd -server 127.0.0.1:2181
JPS 에 관 한 것 은 혼자 JAVAHOME \ bin 디 렉 터 리 를 내 려 다 보면 명령 이 많 습 니 다.
계속
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.