<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>系统运维 &#187; zookeeper</title>
	<atom:link href="http://www.osyunwei.com/archives/category/framework/bigdata/zookeeper/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Wed, 01 Apr 2026 08:27:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux系统下部署ZooKeeper集群</title>
		<link>https://www.osyunwei.com/archives/13465.html</link>
		<comments>https://www.osyunwei.com/archives/13465.html#comments</comments>
		<pubDate>Sun, 30 Apr 2023 12:40:28 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[zookeeper]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=13465</guid>
		<description><![CDATA[1、ZooKeeper介绍 1.1、ZooKeeper 在 Java 版本 1.8 或更高版本中运行（JDK 8 LTS、JDK 11 LTS、JDK 12 - 不支持 Java 9 和 10），它作为 ZooKeeper 服务器的集合运行，三个 ZooKeeper 服务器是一个整体的最小推荐大小，我们还建议它们在不同的机器上运行。 1.2、ZooKeeper 集群强烈建议使用奇数台机器，例如，在四台机器上，ZooKeeper 只能处理一台机器的故障；如果两台机器发生故障，则其余两台机器不构成多数。但是，如果有五台机器，ZooKeeper 可以处理两台机器的故障。容错集群设置至少需要三台服务器。 1.3、通常三台服务器对于生产安装来说绰绰有余，但为了在获得最大的可靠性，您可能希望安装五台服务器。 1.4、官方网站： https://zookeeper.apache.org/ 1.5、下载地址： https://downloads.apache.org/zookeeper/zookeeper-3.8.1/apache-zookeeper-3.8.1-bin.tar.gz 1.6、说明文档： https://zookeeper.apache.org/doc/current/zookeeperAdmin.html 2、部署zookeeper集群，这里使用三台服务器组成集群模式。 操作系统：CentOS-7.x ip地址：192.168.21.100，192.168.21.101，192.168.21.128 zookeeper默认使用2181端口，集群模式还会用到2888、3888端口，建议zookeeper部署在内网环境中，服务器上关闭防火墙，分别在三台服务器上操作。 2.1、安装Java ZooKeeper依赖Java才能运行，首先安装Java环境，我们使用Java 1.8版本 Linux系统下安装Java JDK：https://www.osyunwei.com/archives/12872.html 2.2、安装ZooKeeper mkdir -p /data/server/zookeeper  #创建安装目录 mkdir -p /data/server/zookeeper/data  #创建数据目录 mkdir -p /data/server/zookeeper/logs  #创建日志目录 下载目录：/usr/local/src/apache-zookeeper-3.8.1-bin.tar.gz [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/13465.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/13465.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
