Book Image

Java EE 7 Development with WildFly

Book Image

Java EE 7 Development with WildFly

Overview of this book

Table of Contents (21 chapters)
Java EE 7 Development with WildFly
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Entering the WildFly CLI


A CLI is a complete management tool that can be used to start and stop servers, deploy and undeploy applications, configure system resources, and perform other administrative tasks. Operations in it can be executed in an atomic way or in batch modes, allowing you to run multiple tasks as a group.

Launching the CLI

If you are using Windows, you can start the CLI by entering the following command from the JBOSS_HOME/bin folder using the Command Prompt:

jboss-cli.bat

Alternatively, enter the following command if you are using Linux:

./jboss-cli.sh

Once the CLI has started, you can connect to the managed server instance using the connect command, which by default connects to localhost and the 9990 port:

[disconnected /] connect
[standalone@localhost:9990 /]

If you want to connect to another address or port, you can simply pass it to the connect command, as follows:

[disconnected /] connect 192.168.1.1
[[email protected]:9990 /]

It is also possible to launch a CLI...