|
|
楼主 |
发表于 2023-1-3 11:28:57
|
显示全部楼层
cat config/zookeeper.properties 1 O7 p# B: @' K) {7 W3 S
# Licensed to the Apache Software Foundation (ASF) under one or more
; _. o$ x5 p( {$ J* R" }: a# contributor license agreements. See the NOTICE file distributed with
6 x8 r+ }/ ~' X' e# this work for additional information regarding copyright ownership.
% o& h9 t* V) M& u H# The ASF licenses this file to You under the Apache License, Version 2.0
: o/ K' b6 L/ Q# (the "License"); you may not use this file except in compliance with9 ^% y5 f( i- o6 q# v) T7 r
# the License. You may obtain a copy of the License at1 _! [# n. d1 S+ S! g& K) K
#
7 _6 P! T3 ?8 H2 f4 P9 v- M3 Z7 Z5 b# http://www.apache.org/licenses/LICENSE-2.0
$ b* q" R: w# A$ v$ d#
, d6 c9 _! k' g8 _- T# Unless required by applicable law or agreed to in writing, software
0 [/ m- E. l& G7 s# distributed under the License is distributed on an "AS IS" BASIS,* b: k% n1 B- |* H+ Z7 {
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
% i, g) `2 }! b0 W# See the License for the specific language governing permissions and4 @' N) U, F1 m$ S9 G/ h
# limitations under the License.
. i2 c' g' [0 U5 z( m) i# the directory where the snapshot is stored.7 e4 P. O3 Z, G/ Q7 V4 l
dataDir=/mnt/kafka_2.13-3.3.1/data/zookeeper( E/ Z, F! ?/ d
# the port at which the clients will connect5 L% f( f6 y# f! y8 I
clientPort=2181 A# O; ^, T2 C4 q4 G1 g% a$ Y3 v
# disable the per-ip limit on the number of connections since this is a non-production config
; H: M! Q8 a9 `1 imaxClientCnxns=0
. T4 f* C, s$ Z: Y) W, ^# Disable the adminserver by default to avoid port conflicts.' q8 R7 @$ C5 I! {8 w! L
# Set the port to something non-conflicting if choosing to enable this
2 `) s8 P F! M$ o+ n+ Jadmin.enableServer=false
8 K* p8 O6 x% m Y: Z) I# admin.serverPort=80807 A/ j* S0 S+ G
) P; T2 c; p2 [, l$ D, c l6 e+ |* Y* s' }
nohup bin/zookeeper-server-start.sh config/zookeeper.properties &
0 S2 T- S& g. H0 z+ R4 G8 m$ ? |
|