Questo contenuto non è disponibile nella lingua selezionata.
2.3. Management CLI
2.3.1. Launch the Management CLI Copia collegamentoCollegamento copiato negli appunti!
Procedure 2.1. Launch CLI in Linux or Microsoft Windows Server
Launch the CLI in Linux
Run theEAP_HOME/bin/jboss-cli.shfile by entering the following at a command line:EAP_HOME/bin/jboss-cli.sh
$ EAP_HOME/bin/jboss-cli.shCopy to Clipboard Copied! Toggle word wrap Toggle overflow Launch the CLI in Microsoft Windows Server
Run theEAP_HOME\bin\jboss-cli.batfile by double-clicking it, or by entering the following at a command line:C:\>EAP_HOME\bin\jboss-cli.bat
C:\>EAP_HOME\bin\jboss-cli.batCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.3.2. Quit the Management CLI Copia collegamentoCollegamento copiato negli appunti!
quit command:
[domain@localhost:9999 /] quit
[domain@localhost:9999 /] quit
2.3.3. Connect to a Managed Server Instance Using the Management CLI Copia collegamentoCollegamento copiato negli appunti!
Prerequisites
Procedure 2.2. Connect to a Managed Server Instance
Run the
connectcommandFrom the Management CLI, enter theconnectcommand:[disconnected /] connect Connected to domain controller at localhost:9999
[disconnected /] connect Connected to domain controller at localhost:9999Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Alternatively, to connect to a managed server when starting the Management CLI on a Linux system, use the
--connectparameter:EAP_HOME/bin/jboss-cli.sh --connect
$ EAP_HOME/bin/jboss-cli.sh --connectCopy to Clipboard Copied! Toggle word wrap Toggle overflow - The
--connectparameter can be used to specify the host and port of the server. To connect to the address192.168.0.1with the port value9999the following would apply:EAP_HOME/bin/jboss-cli.sh --connect --controller=192.168.0.1:9999
$ EAP_HOME/bin/jboss-cli.sh --connect --controller=192.168.0.1:9999Copy to Clipboard Copied! Toggle word wrap Toggle overflow
2.3.4. Obtain Help with the Management CLI Copia collegamentoCollegamento copiato negli appunti!
Sometimes you might need guidance if you need to learn a CLI command or feel unsure about what to do. The Management CLI features a help dialog with general and context-sensitive options. (Note that the help commands dependent on the operation context require an established connection to either a standalone or domain controller. These commands will not appear in the listing unless the connection has been established.)
Prerequisites
For general help
From the Management CLI, enter thehelpcommand:[standalone@localhost:9999 /] help
[standalone@localhost:9999 /] helpCopy to Clipboard Copied! Toggle word wrap Toggle overflow Obtain context-sensitive help
From the Management CLI, enter thehelp -commandsextended command:[standalone@localhost:9999 /] help --commands
[standalone@localhost:9999 /] help --commandsCopy to Clipboard Copied! Toggle word wrap Toggle overflow - For a more detailed description of a specific command, enter the command, followed by
--help.[standalone@localhost:9999 /] deploy --help
[standalone@localhost:9999 /] deploy --helpCopy to Clipboard Copied! Toggle word wrap Toggle overflow
The CLI help information is displayed.