
在windows环境下运行zookeeper有一些困难。
我下载了zookeeper 3.4.6。 提取它。 在conf文件夹中创build一个zoo.cfg,具体细节如下:
# The number of milliseconds of each tick tickTime=2000 # 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=/tmp/zookeeper # 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
然后我试图从bin文件夹运行zkServer.cmd。 但我不知道这是否运行。
如何testingZookeeper服务器是否在windows上运行?
在C中打开应用程序
如何在一个windows Form面板中的一个Csharp面板中使用多个窗体?
如何在windows中closures应用程序?
WINAPI_FAMILY_PARTITION是做什么的?
无法在Intellij中运行maven任务 – maven home无效
在windows中等效的任务集
GetVersionEx在windows 8下
获取.NET枚举的windows本地化
从PowerShell挂起或hibernate
如何让我的Win32程序'别针到任务栏'?
如果您想查看结果,请以管理员身份从windows命令行工具运行zkserver.cmd,而不是通过登录将会在最后关闭,您将无法看到结果。
另外,还应该将dataDir更新为有效的windows目录,格式为C:/ tmp / …。
在命令行中,调用zkserver.cmd之后,应该能够在命令行上看到不同的[INFO]消息,最后一个消息绑定到端口0.0.0.0/0.0.0.0:2181。
总结以上是内存溢出为你收集整理的Windows上的Zookeeper全部内容,希望文章能够帮你解决Windows上的Zookeeper所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)