如何安装Infinispan命令行客户端?

数据库

1 前言

一个问题,一篇文章,一出故事。
笔者完成Infinispan单节点部署,本章将Infinispan命令行客户端的安装部署。
关于Infinispan服务端的部署,如有需要请参阅,

如何安装部署Infinispan服务节点?

2 最佳实践

2.1 下载软件并解压包

cd ~/Downloads
wget https://github.com/infinispan/infinispan/releases/download/15.2.5.Final/infinispan-cli-15.2.5.Final-linux-x86_64.zip
unzip infinispan-cli-15.2.5.Final-linux-x86_64.zip

需要注意的是,以上只是命令行范例,如果下载异常或者需要其他版本,请参阅如下连接,
https://github.com/infinispan/infinispan/releases

2.2 部署软件包

cd ~/Downloads
sudo mv infinispan-cli-15.2.5.Final-linux-x86_64/infinispan-cli /usr/local/bin/

2.3 测试软件包

infinispan-cli -v

可见如下显示,

Infinispan CLI 15.2.5.Final
Copyright (C) Red Hat Inc. and/or its affiliates and other contributors
License Apache License, v. 2.0. http://www.apache.org/licenses/LICENSE-2.0

2.4 获取软件包使用帮助

infinispan-cli -h

可见如下显示,

Usage: cli []


Options:
  -t, --truststore           A truststore to use when connecting to SSL/TLS-enabled servers
  -s, --truststore-password  The password for the truststore
  -k, --keystore             A keystore containing a client certificate to authenticate with the server
  -w, --keystore-password    The password for the keystore
  --provider                 The security provider used to create the SSL/TLS context
  -v, --version              Shows version information
  --trustall                 Whether to trust all server certificates
  -f, --file                 File for batch mode
  -c, --connect              A connection URL. Use '-' to connect to http://localhost:11222
  -P, --properties           Sets system properties from the specified file.
  -D, --propertyMap          Sets a system property
  --hostname-verifier        A regular expression used to match hostnames when connecting to SSL/TLS-enabled servers
  -h, --help

cli commands:
    add           Adds/subtracts a value to/from a counter
    alter         Alters a configuration
    availability  Manage availability of clustered caches in network partitions.
    backup        Manages container backup creation and restoration
    benchmark     Benchmarks server performance
    cache         Selects a cache
    cas           Compares and sets counter values
    cd            Selects a subsystem or item
    clear         Clears the screen
    clearcache    Clears the cache
    config        Configuration operations
    connect       Connects to a remote server
    container     Selects a container
    counter       Selects counters
    create        Creates a cache or a counter
    credentials   Credential store operations
    describe      Displays information about the specified resource
    disconnect    Disconnects from a remote server
    drop          Drops a cache or a counter
    echo          Echoes messages to the output. Useful for adding information to batch runs.
    encoding      Gets/sets the current encoding
    get           Gets an entry from the cache
    index         Performs operations on indexes
    install       Downloads and installs artifacts into the lib folder of the server.
    logging       Inspects/Manipulates the server logging configuration
    ls            Lists resources in a path
    migrate       Migration operations
    patch         Patch operations
    put           Puts an entry into the cache
    query         Queries a cache
    raft          Manages RAFT membership
    rebalance     Manage rebalance behaviour
    remove        Removes an entry from the cache
    reset         Resets a counter to its initial value
    run           Reads and executes commands from one or more files
    schema        Manipulates Protobuf schemas
    server        Obtains information about the server
    shutdown      Stops server instances and clusters.
    site          Manages backup sites
    task          Executes or manipulates server-side tasks
    topology      Manages the cluster topology.
    troubleshoot  Execute troubleshooting commands
    user          User operations
    version       Shows version information
没有评论

发表回复

数据库
如何部署Hot Rod C++客户端?

1 基础知识 1.1 Hot Rod Java客户端简介 – Hot Rod是一种二进制 …

数据库
如何测试Infinispan创建数据?

1 前言 一个问题,一篇文章,一出故事。 笔者完成Infinispan单节点部署,本章将测试缓存数据 …

数据库
如何安装部署Infinispan服务节点?

1 基础知识 1.1 软件简介 – Infinispan是一款开源内存数据库 &#821 …