Apache Geode 更改文件规范

      你可以在命令行中修改gemfire.properties文件中的所有规范。

      注意: Geode应用可以使用应用程序接口将java.lang.System属性传用到分布式系统连接。这种文件规范更改是在命令行中或是gemfire.properties完成的。你可以在应用启动记录的配置信息中校验应用的属性设置。当gemfire.properties log-level被设为config 或更低时,配置列表如下:

      此应用程序的调用,testApplication.TestApp1为cache.xmlgemfire.properties供了非默认规范

java -Dgemfire.cache-xml-file=
/gemfireSamples/examples/dist/cacheRunner/queryPortfolios.xml
-DgemfirePropertyFile=defaultConfigs/gemfire.properties
testApplication.TestApp1

这个gfsh启动服务器命令可以使用相同的规范:

gfsh>start server
-J-Dgemfire.cache-xml-file=/gemfireSamples/examples/dist/cacheRunner/queryPortfolios.xml
-J-DgemfirePropertyFile=defaultConfigs/gemfire.properties

你也可以在gemfire.properties文件里面为cache.xml更改规范。

注意: gemfire.properties里面的规范不能使用系统参数。例如带着非默认cache.xml的gemfire.properties文件:

扫描二维码关注公众号,回复: 334912 查看本文章
#Tue May 09 17:53:54 PDT 2006
mcast-address=192.0.2.0
mcast-port=10333
locators=
cache-xml-file=/gemfireSamples/examples/dist/cacheRunner/queryPortfolios.xml

猜你喜欢

转载自bewithme.iteye.com/blog/2325474