9.2. 订阅频道
以下示例演示了如何使用管理 CLI 订阅独立服务器和受管域中的频道。
流程
启动管理 CLI:
EAP_HOME/bin/jboss-cli.sh
EAP_HOME/bin/jboss-cli.shCopy to Clipboard Copied! Toggle word wrap Toggle overflow 订阅频道:
在独立服务器中订阅频道:
[standalone@localhost:9990 /] installer channel-add --channel-name=test-channel --manifest=org.test:test-manifest --repositories=mrrc::https://maven.repository.redhat.com
[standalone@localhost:9990 /] installer channel-add --channel-name=test-channel --manifest=org.test:test-manifest --repositories=mrrc::https://maven.repository.redhat.comCopy to Clipboard Copied! Toggle word wrap Toggle overflow 订阅受管域中的频道:
[domain@localhost:9990 /] installer channel-add --host=target-host --channel-name=test-channel --manifest=org.test:test-manifest --repositories=mrrc::https://maven.repository.redhat.com
[domain@localhost:9990 /] installer channel-add --host=target-host --channel-name=test-channel --manifest=org.test:test-manifest --repositories=mrrc::https://maven.repository.redhat.comCopy to Clipboard Copied! Toggle word wrap Toggle overflow