- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|

楼主 |
发表于 2023-1-3 11:28:57
|
显示全部楼层
cat config/zookeeper.properties
+ X& O& k* s* X7 P! o: j; i* J# Licensed to the Apache Software Foundation (ASF) under one or more
, X) @. Z& r/ M- d0 G' E3 y# contributor license agreements. See the NOTICE file distributed with
6 ?) e% f8 t+ q# E, a1 @# this work for additional information regarding copyright ownership.5 X) T9 b/ W$ f V0 ^, P) z. P
# The ASF licenses this file to You under the Apache License, Version 2.0: V( D: L/ T! [2 u: G
# (the "License"); you may not use this file except in compliance with
# W/ ~" Q! v! M7 x8 V1 E2 F: p; D# the License. You may obtain a copy of the License at
3 a i% T) @- k Q# Q#
1 f( w+ F0 X; _# http://www.apache.org/licenses/LICENSE-2.03 P+ B, e# {5 J0 a+ k: c
#
/ b* Y7 R' F }, R: _# Unless required by applicable law or agreed to in writing, software1 D) j$ R) K1 V1 h2 z
# distributed under the License is distributed on an "AS IS" BASIS,& n8 j8 P7 x7 O& J( C7 A9 t
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- y9 d, O% n( [/ L$ q7 R) `; Y
# See the License for the specific language governing permissions and
9 \: l! r: A/ @& c( l7 q+ k$ M. q# limitations under the License.0 ~ [5 P/ B m8 e
# the directory where the snapshot is stored.
) \+ r& C# d3 Z8 v3 VdataDir=/mnt/kafka_2.13-3.3.1/data/zookeeper; D% K4 v: y, G: c8 x9 b" S
# the port at which the clients will connect
, g% \7 {5 [) p) \' F1 _" jclientPort=21816 i0 W$ Q4 Z5 d8 m% f$ H' k
# disable the per-ip limit on the number of connections since this is a non-production config& Q/ q; c! Q0 ~3 J5 A( t8 Q
maxClientCnxns=0
$ X7 S4 w: W4 g3 s. Z5 w. P# Disable the adminserver by default to avoid port conflicts.
2 w* Q! ]/ q9 G6 ~# Set the port to something non-conflicting if choosing to enable this9 ^3 X0 l, I& |! W) g$ E
admin.enableServer=false3 A& ]! j; R1 |8 N) e' G# i* c1 ]
# admin.serverPort=8080! t2 F2 _2 v% F% D2 K
4 l3 }' |& h9 R
q- q# o% F" q3 f! enohup bin/zookeeper-server-start.sh config/zookeeper.properties &$ }# {5 \/ H4 }$ o: u
|
|