wildfly administator 또는 remote cli등의 작업을 위해 사용자 등록을 처리한다.
[root@localhost bin]# pwd /opt/wildfly/bin
[root@localhost bin]# ./add-user.sh
What type of user do you wish to add? a) Management User (mgmt-users.properties) b) Application User (application-users.properties) (a): a
Enter the details of the new user to add. Using realm 'ManagementRealm' as discovered from the existing property files. Username : sample Password recommendations are listed below. To modify these restrictions edit the add-user.properties configuration file. - The password should be different from the username - The password should not be one of the following restricted values {root, admin, administrator} - The password should contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), 1 non-alphanumeric symbol(s) Password : WFLYDM0102: Password should have at least 1 non-alphanumeric symbol. Are you sure you want to use the password entered yes/no? yes Re-enter Password : What groups do you want this user to belong to? (Please enter a comma separated list, or leave blank for none)[ ]: About to add user 'sample'for realm 'ManagementRealm' Is this correct yes/no? yes Added user 'sample' to file '/opt/wildfly-17.0.1.Final/standalone/configuration/mgmt-users.properties' Added user 'sample' to file '/opt/wildfly-17.0.1.Final/domain/configuration/mgmt-users.properties' Added user 'sample' with groups to file '/opt/wildfly-17.0.1.Final/standalone/configuration/mgmt-groups.properties' Added user 'sample' with groups to file '/opt/wildfly-17.0.1.Final/domain/configuration/mgmt-groups.properties' Is this new user going to be used for one AS process to connect to another AS process? e.g. for a slave host controller connecting to the master or for a Remoting connection for server to server EJB calls. yes/no? yes To represent the user add the following to the server-identities definition <secret value="dGhl1gmM3ODk=" />
Cli 사용법
접속 방법
[root@localhost bin]# ./jboss-cli.sh You are disconnected at the moment. Type 'connect' to connect to the server or 'help'for the list of supported commands. [disconnected /] connect 127.0.0.1:10090 [standalone@127.0.0.1:10090 /] exit [root@localhost bin]# ./jboss-cli.sh --connect --controller=127.0.0.1:10090
제공 가능한 명령어
[standalone@127.0.0.1:10090 /] help --commands Commands available in the current context: attachment deployment-info run-batch batch deployment-overlay security disable-http-auth-http-server cdecho security disable-http-auth-management clear echo-dmr security disable-sasl-management commandfor security disable-ssl-http-server command-timeout grep security disable-ssl-management connect help security enable-http-auth-http-server connection-info history security enable-http-auth-management data-source if security enable-sasl-management deploy jdbc-driver-info security enable-ssl-http-server deployment deploy-cli-archive ls security enable-ssl-management deployment deploy-file module security reorder-sasl-management deployment deploy-url patch apply set deployment disable patch history shutdown deployment disable-all patch info try deployment enable patch inspect undeploy deployment enable-all pwdunset deployment info quit version deployment list read-attribute xa-data-source deployment undeploy read-operation deployment undeploy-cli-archive reload To read a description of a specific command execute 'help <command name>'.