インストールと構成の飼育係でのlinux

1.
1.1は、 4台の仮想マシンと開始を作成:
ここに画像を挿入説明
1.2は、それぞれ注1、4つのセッションの内部に配置されたファイルのフォルダを確立centos7、注2、シェル内の注3、注4
ここに画像を挿入説明
1.3が正常に確立
ここに画像を挿入説明
2.設定開始
2.1:変更ホスト名:hostnamectlセット-hostnameホスト名--static(永久)
の再起動:再起動
ビューホスト名:ホスト名
ここに画像を挿入説明
2.2は、ファイアウォールをオフ
サービスiptablesの停止を入力するとき、次のエラーが表示されますが:
ここに画像を挿入説明
あなたはiptablesのサービスをインストールする必要があります。

systemctl stop firewalld 
systemctl  mask firewalld 
yum install iptables-services(安装)
systemctl stop iptables(开机关闭)
service iptables save(保存)

2.3:SYNCボタン設定し
ここに画像を挿入説明
ここに画像を挿入説明
たフォルダに作成する飼育係2.4
ここに画像を挿入説明
ここに画像を挿入説明
2.5をクリックxftp6、あなたが渡したいファイルを開くには、飼育係ビン、
:2.6飼育係ダウンロード
https://mirrors.cloud.tencent.com/apache/zookeeper/zookeeper-3.5.7/を
2.7note1、注2、注3、アップロードするために、このメソッドを使用している

ここに画像を挿入説明
2.8:エキス:タール- zxvfのApache ZooKeeperの-3.5.7-bin.tar.gz
ここに画像を挿入説明
2.9名前の変更:
MVのApache-3.5.7-binの-ZooKeeperのZooKeeperのApache- ここに画像を挿入説明
削除タールパッケージ
ここに画像を挿入説明
データを入力し、MYIDを作成して入力し、内部の内容を変更する
ここに画像を挿入説明
それぞれ0,1,2を書くことMYID。私、修正、ESC出口を:WQは、保存して終了することを余儀なく!
ここに画像を挿入説明
飼育係-Apacheの入力
ここに画像を挿入説明
3.修正飼育係プロフィール:
3.1:conf`` [ルート@注1のapache-ZooKeeperの入力 ]#のCD confに/ `` `
に、コピーzoo_sample.cfgをzoo.cfg。[root@note1 conf]# cp zoo_sample.cfg zoo.cfg
コンフィギュレーション・ファイルzoo.cfgを変更します。[root@note1 conf]# vim zoo.cfg
zoo.cfgプロフィール:
DATADIR = /データ/ ZooKeeperの/データ
server.0 =注1:2888:3888
server.1 =注2:2888:3888
server.2 =注3:2888:3888

# The number of ticks that the initial 
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between 
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just 
# example sakes.
dataDir=/data/zookeeper/data
# the port at which the clients will connect
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
server.0=note1:2888:3888
server.1=note2:2888:3888
server.2=note3:2888:3888

3.2:スタート飼育係[root@note1 apache-zookeeper]# bin/zkServer.sh start

ここに画像を挿入説明
ビューのステータス:[root@note1 apache-zookeeper]# bin/zkServer.sh status
JPSが起動:jpsここに画像を挿入説明
3.3(Firefoxの)アクセス注1にブラウザ上:8080

ここに画像を挿入説明
3.4
ここに画像を挿入説明
完全な構成のZooKeeper
3.4:
ビューログvim logs/zookeeper-root-server-note1.out
配布ファイル:scp -r apache-zookeeper/root@note2$pwd scp -r apache-zookeeper/root@note3$pwd

公開された16元の記事 ウォンの賞賛9 ビュー279

おすすめ

転載: blog.csdn.net/XIAOMO__/article/details/104802404