2023年7月3日发(作者:)
wildfly21的配置⽂件和资源管理简介在上⼀篇⽂章我们介绍了wildfly 21的基本使⽤和管理界⾯。今天我们将会详细讲解⼀下wildfly的配置⽂件和资源管理。wildfly的配置⽂件不管是在standalone还是在domain模式下,有两个配置⽂件是⾮常重要的,他们是和。其他的standalone-*.xml可以参考来配置我们看下的⼤体结构:
[disconnected /] connect[standalone@localhost:9990 /]web端⼤家应该都很清楚怎么使⽤,这⾥重点介绍⼀下命令⾏端的使⽤情况。我们通过help --commands可以拿到命令⾏状态下可以执⾏的命令:attachment deployment enable-all module security enable-http-auth-http-serverbatch deployment info patch apply security enable-http-auth-managementcd deployment list patch history security enable-sasl-managementclear deployment undeploy patch info security enable-ssl-http-servercommand deployment undeploy-cli-archive patch inspect security enable-ssl-managementcommand-timeout deployment-info pwd security reorder-sasl-managementconnect deployment-overlay quit setconnection-info echo read-attribute shutdowndata-source echo-dmr read-operation trydeploy for reload undeploydeployment deploy-cli-archive grep run-batch unsetdeployment deploy-file help security disable-http-auth-http-server versiondeployment deploy-url history security disable-http-auth-management xa-data-sourcedeployment disable if security disable-sasl-managementdeployment disable-all jdbc-driver-info security disable-ssl-http-serverdeployment enable ls security disable-ssl-management除此之外,命令⾏还对资源提供了⼀系列的操作符来对资源进⾏操作。在wildfly中,可管理的对象都被看做是⼀个⼀个的资源,我们可以通过资源的路径来访问到这个资源。⽐如,我想看⼀下server下⾯名字是default-server的资源,则可以这样: /server=default-server
资源路径可以连写,⽐如:/subsystem=undertow/server=default-server/http-listener=default这些都是有效的资源路径。有了资源路径,我们还需要提供操作符来对资源进⾏操作,wildfly提供了下⾯的操作符:addread-attributeread-children-namesread-children-resourcesread-children-typesread-operation-descriptionread-operation-namesread-resourceread-resource-descriptionremovevalidate-addresswrite-attribute我们可以在操作符前⾯加上冒号,来具体使⽤他们:/subsystem=logging:read-operation-names上⾯的例⼦将会获取对logging⼦系统的操作符:{ "outcome" => "success", "result" => [ "add", "list-add", "list-clear", "list-get", "list-log-files", "list-remove", "map-clear", "map-get", "map-put", "map-remove", "query", "read-attribute", "read-attribute-group", "read-attribute-group-names", "read-children-names", "read-children-resources", "read-children-types", "read-log-file", "read-operation-description", "read-operation-names", "read-resource", "read-resource-description", "remove", "undefine-attribute", "whoami", "write-attribute" ]}总结本⽂讲解了wildfly的配置⽂件和资源管理相关的操作,希望⼤家能够喜欢。本⽂作者:flydean程序那些事本⽂来源:flydean的博客欢迎关注我的公众号:「程序那些事」最通俗的解读,最深刻的⼲货,最简洁的教程,众多你不知道的⼩技巧等你来发现!
发布者:admin,转转请注明出处:http://www.yc00.com/xiaochengxu/1688384958a130076.html
评论列表(0条)