Apache Geode change file specification

      You can modify it on the command linegemfire.properties文件中的所有规范。

      Note: Geode applications can use APIs to java.lang.System属性传用到分布式系统连接。这种文件规范更改是在命令行中或是gemfire.properties完成的。你可以在应用启动记录的配置信息中校验应用的属性设置。当gemfire.properties log-level被设为configconfigure or lower, the configuration list is as follows:

      The call of this application,testApplication.TestApp1为cache.xmlgemfire.properties供了非默认规范

 

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

The same specification can be used with this gfsh start server command:

 

 

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

 

 

You can also specify changes in the gemfire.propertiesfile .cache.xml

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

#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

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327040250&siteId=291194637