jboss相关命令

来源:互联网 发布:包袋erp软件 编辑:程序博客网 时间:2024/05/29 02:24
./standalone.sh -h   --查看帮助
./standalone.sh -v   --查看版本
JBoss EAP 6.1.0.GA (AS 7.2.0.Final-redhat-8)
./add-user.sh  --增加用户

进入控制台:
./jboss-cli.sh --connect
help
help --commands
deploy --help  --查看具体某个命令的帮助
run-batch --file=myscript.txt  --批量执行脚本命令
version  --显示版本
[standalone@localhost:9999 /] :whoami
{
    "outcome" => "success",
    "result" => {"identity" => {
        "username" => "$local",
        "realm" => "ManagementRealm"
    }}
}
--显示可用的操作
[standalone@localhost:9999 /] :read-operation-names
{
    "outcome" => "success",
    "result" => [
        "add-namespace",
        "add-schema-location",
        "delete-snapshot",
        "full-replace-deployment",
        "list-snapshots",
        "read-attribute",
        "read-children-names",
        "read-children-resources",
        "read-children-types",
        "read-config-as-xml",
        "read-operation-description",
        "read-operation-names",
        "read-resource",
        "read-resource-description",
        "reload",
        "remove-namespace",
        "remove-schema-location",
        "replace-deployment",
        "resolve-expression",
        "resolve-internet-address",
        "server-set-restart-required",
        "shutdown",
        "take-snapshot",
        "undefine-attribute",
        "upload-deployment-bytes",
        "upload-deployment-stream",
        "upload-deployment-url",
        "validate-address",
        "validate-operation",
        "whoami",
        "write-attribute"
    ]
}
--读取资源
:read-resource
--读取资源描述
:read-resource-description
--重启
:reload
:shutdown --关闭
history  --显示命令历史
history  --clear  --清除历史

0 0
原创粉丝点击