Geode集群搭建

匿名 (未验证) 提交于 2019-12-03 00:21:02

http://mirror.bit.edu.cn/apache/geode/1.2.0/

apache-geode-1.2.0

gfsh>start locator --name=locator1

[trade@web01 bin]$ ./gfsh     _________________________     __    / _____/ ______/ ______/ /____/ /   / /  __/ /___  /_____  / _____  /   / /__/ / ____/  _____/ / /    / /   /______/_/      /______/_/    /_/    1.2.0  Monitor and Manage Apache Geode gfsh>start locator --name=locator1 Starting a Geode Locator in /data/trade/apache-geode-1.2.0/bin/locator1... ......... Locator in /data/trade/apache-geode-1.2.0/bin/locator1 on web01[10334] as locator1 is currently online. Process ID: 23550 Uptime: 5 seconds Geode Version: 1.2.0 Java Version: 1.8.0_131 Log File: /data/trade/apache-geode-1.2.0/bin/locator1/locator1.log JVM Arguments: -Dgemfire.enable-cluster-configuration=true -Dgemfire.load-cluster-configuration-from-dir=false -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true -Dsun.rmi.dgc.server.gcInterval=9223372036854775806 Class-Path: /data/trade/apache-geode-1.2.0/lib/geode-core-1.2.0.jar:/data/trade/apache-geode-1.2.0/lib/geode-dependencies.jar  Successfully connected to: JMX Manager [host=web01, port=1099]  Cluster configuration service is up and running. 

gfsh>connect --locator=192.168.30.2[10334]

gfsh>start server --name=server1

[trade@web02 bin]$ ./gfsh     _________________________     __    / _____/ ______/ ______/ /____/ /   / /  __/ /___  /_____  / _____  /   / /__/ / ____/  _____/ / /    / /   /______/_/      /______/_/    /_/    1.2.0  Monitor and Manage Apache Geode  gfsh>connect --locator=192.168.30.2[10334] Connecting to Locator at [host=192.168.30.2, port=10334] .. Connecting to Manager at [host=web01, port=1099] .. Successfully connected to: [host=web01, port=1099]  gfsh>start server --name=server1 Starting a Geode Server in /data/trade/apache-geode-1.2.0/bin/server1... .......... Server in /data/trade/apache-geode-1.2.0/bin/server1 on web02[40404] as server1 is currently online. Process ID: 8273 Uptime: 5 seconds Geode Version: 1.2.0 Java Version: 1.8.0_131 Log File: /data/trade/apache-geode-1.2.0/bin/server1/server1.log JVM Arguments: -Dgemfire.default.locators=192.168.30.2[10334] -Dgemfire.use-cluster-configuration=true -Dgemfire.start-dev-rest-api=false -XX:OnOutOfMemoryError=kill -KILL %p -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true -Dsun.rmi.dgc.server.gcInterval=9223372036854775806 Class-Path: /data/trade/apache-geode-1.2.0/lib/geode-core-1.2.0.jar:/data/trade/apache-geode-1.2.0/lib/geode-dependencies.jar 

gfsh>create region --name=userMap --type=REPLICATE

gfsh>put --region=userMap --key="1" --value="one"

gfsh>query --query="select * from /userMap"

gfsh>create region --name=userMap --type=REPLICATE Member  | Status ------- | -------------------------------------- server1 | Region "/userMap" created on "server1"  gfsh>put --region=userMap --key="1" --value="one" Result      : true Key Class   : java.lang.String Key         : 1 Value Class : java.lang.String Old Value   : <NULL>   gfsh>query --query="select * from /userMap"  
文章来源: Geode集群搭建
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!