- 下载安装包zookeeper-3.4.8.tar.gz
- 解压zookeeper-3.4.8.tar.gz,生成文件夹zookeeper-3.4.8
- 进入zookeeper-3.4.8文件夹的conf目录,拷贝zoo_sample.cfg为zoo.cfg
- 修改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=e:\\zookeeper-3.4.8\\data dataLogDir=e:\\zookeeper-3.4.8\\log # 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
- 启动Zookeeper,双击bin目录下的zkServer.cmd
- 客户端连接,查看数据路径,双击bin目录下zkCli.cmd
- 就可以看到目前Zookeeper数据的存储路径为/zookeeper/quota。
核心技术:Maven,Springmvc mybatis shiro, Druid, Restful, Dubbo, ZooKeeper,Redis,FastDFS,ActiveMQ,Nginx
1. 项目核心代码结构截图
项目模块依赖
特别提醒:开发人员在开发的时候可以将自己的业务REST服务化或者Dubbo服务化
2. 项目依赖介绍
2.1 后台管理系统、Rest服务系统、Scheculer定时调度系统依赖如下图:
2.2 Dubbo独立服务项目依赖如下图:
3. 项目功能部分截图:
zookeeper、dubbo服务启动
dubbo管控台
REST服务平台