Infinispan安装、配置

下载地址:

https://infinispan.org/download/

运行服务端:

/bin/server.sh

无集群并指定配置文件运行服务端:-c

/bin/server.sh -c infinispan-local.xml

运行客户端;

bin/cli.sh user create myuser -p changeme -g admin

或者

/bin/cli.sh user create username -p "qwer1234!"

指定运行IP:-b

/bin/server.sh -b 0.0.0.0

指定端口:

/bin/server.sh -p 30000

改变集群IP:-k

/bin/server.sh -k 192.168.1.100

指定集群之间传输协议:-j

/bin/server.sh -j udp

文件目录描述:

|`/bin`
|Contains scripts to start servers and CLI.

|`/boot`
|Contains `JAR` files to boot servers.

|`/docs`
|Provides configuration examples, schemas, component licenses, and other resources.

|`/lib`
|Contains `JAR` files that servers require internally. +
Do not place custom `JAR` files in this folder.

|`/server`
|Provides a root folder for Infinispan Server instances.

|`/static`
|Contains static resources for Infinispan Console.

指定根服务器:-s

/bin/server.sh -s server2

服务器根目录:

|`/server/conf`
|Contains server configuration files.
|`infinispan.server.config.path`

|`/server/data`
|Contains data files organized by container name.
|`infinispan.server.data.path`

|`/server/lib`
|Contains server extension files. +
This directory is scanned recursively and used as a classpath.
|`infinispan.server.lib.path` +
Separate multiple paths with the following delimiters: +
`:` on Unix / Linux +
`;` on Windows

|`/server/log`
|Contains server log files.
|`infinispan.server.log.path`

在server/conf中配置日志:

/bin/server.sh --logging-config=/path/to/log4j2.xml

上一篇:根据读音查单词


下一篇:批量重命名部分文件内容