2.3. CLI (JBang) からの実行
JBang で CLI から HawtIO をインストールして実行できます。
注記
まだローカルに JBang がない場合は、https://www.jbang.dev/download/ からインストールしてください。
手順:
jbangコマンドを使用して、マシンに HawtIO の最新バージョンをインストールします。$ jbang app install -Dhawtio.jbang.version=4.2.0.redhat-00034 hawtio@hawtio/hawtio注記このインストール方法は、jbang>=0.115.0 でのみ利用できます。
HawtIO コマンドがインストールされます。次のコマンドで HawtIO インスタンスを起動します。
$ hawtioこのコマンドは、http://localhost:8080/hawtio/ でコンソールを自動的に開きます。ポート番号を変更するには、次のコマンドを実行します。
$ hawtio --port 8090CLI の設定オプションの詳細を確認するには、次のコードを実行してください。
$ hawtio --help Usage: hawtio [-hjoV] [-c=<contextPath>] [-d=<plugins>] [-e=<extraClassPath>] [-H=<host>] [-k=<keyStore>] [-l=<warLocation>] [-p=<port>] [-s=<keyStorePass>] [-w=<war>] Run HawtIO -c, --context-path=<contextPath> Context path. -d, --plugins-dir=<plugins> Directory to search for .war files to install as 3rd party plugins. -e, --extra-class-path=<extraClassPath> Extra class path. -h, --help Print usage help and exit. -H, --host=<host> Hostname to listen to. -j, --join Join server thread. -k, --key-store=<keyStore> JKS keyStore with the keys for https. -l, --war-location=<warLocation> Directory to search for .war files. -o, --open-url Open the web console automatic in the web browser. -p, --port=<port> Port number. -s, --key-store-pass=<keyStorePass> Password for the JKS keyStore with the keys for https. -V, --version Print HawtIO version -w, --war=<war> War file or directory of the hawtio web application.