前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >geode的安装部署

geode的安装部署

作者头像
java攻城狮
发布2020-10-10 16:07:28
6200
发布2020-10-10 16:07:28
举报
文章被收录于专栏:个人积累

1.更换lib包和resourcelib包第一个此异常

解决方式,更换原有项目的leap.xml文件和web.xml文件

2.更换配置文件之后的异常

  • 推测原因是没有安装geode,尝试方法一,注释集群配置
代码语言:javascript
复制
该方法无效,依旧报错。
  • 尝试方法二 下载安装geode 解压安装包,并进入bin目录 将bin目录下leap.properties复制到项目将要部署的路径 我这里是 D:/geode/leap 复制到该目录下 按住shift+鼠标右键,选择进入命名管理工具 先输入gfsh命令 ,然后依次执行以下命名 hostname-for-clients和properties-file 设置为自己的路径
代码语言:javascript
复制
start locator --name=locator_leap1  --hostname-for-clients=192.168.5.130 --port=30001 --http-service-port=34001 --properties-file=D:/geode/leap/leap.properties --J=-Dp2p.handshakeTimeoutMs=75000  --J=-Djava.net.preferIPv4Stack=true --dir=D:/geode/leap/locator_leap1

configure pdx --disk-store

start server --name=server_leap1  --hostname-for-clients=192.168.5.130 --server-port=35001  --locators=192.168.5.130[30001]  --initial-heap=1G --max-heap=1G --critical-heap-percentage=95 --eviction-heap-percentage=60 --off-heap-memory-size=3G --critical-off-heap-percentage=95 --eviction-off-heap-percentage=60 --J=-Dgemfire.ALLOW_PERSISTENT_TRANSACTIONS=true --J=-Dp2p.handshakeTimeoutMs=75000 --J=-Djava.net.preferIPv4Stack=true  --properties-file=D:/geode/leap/leap.properties --dir=D:/geode/leap/server_leap1

start server --name=server_leap2  --hostname-for-clients=192.168.5.130 --server-port=35002  --locators=192.168.5.130[30001]  --initial-heap=1G --max-heap=1G --critical-heap-percentage=95 --eviction-heap-percentage=60 --off-heap-memory-size=3G --critical-off-heap-percentage=95 --eviction-off-heap-percentage=60 --J=-Dgemfire.ALLOW_PERSISTENT_TRANSACTIONS=true --J=-Dp2p.handshakeTimeoutMs=75000 --J=-Djava.net.preferIPv4Stack=true  --properties-file=D:/geode/leap/leap.properties --dir=D:/geode/leap/server_leap2

gfsh>deploy --jar=D:\自用项目包\projectresource\LEAPV5资源\发布库\V6\geode\apache-geode-1.6.0\leaplitions2.jar
  • 可能出现的问题 要注意的是,每一个定位器,端口必须是唯一的,IP地址为自己本机地址
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2020-04-18,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 1.更换lib包和resourcelib包第一个此异常
  • 2.更换配置文件之后的异常
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档