Este contenido no está disponible en el idioma seleccionado.
10.3. Deploy with the Management CLI
10.3.1. Manage Application Deployment in the Management CLI Copiar enlaceEnlace copiado en el portapapeles!
10.3.2. Deploy an Application in a Standalone Server Using the Management CLI Copiar enlaceEnlace copiado en el portapapeles!
Prerequisites
Procedure 10.4. Deploy an Application in a Standalone Server
Run the
deploycommandFrom the Management CLI, enter thedeploycommand with the path to the application deployment.Example 10.1. The Deploy command
[standalone@localhost:9999 /] deploy /path/to/test-application.war
[standalone@localhost:9999 /] deploy /path/to/test-application.warCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note that a successful deploy does not produce any output to the CLI.
The specified application is now deployed in the standalone server.
10.3.3. Undeploy an Application in a Standalone Server Using the Management CLI Copiar enlaceEnlace copiado en el portapapeles!
Prerequisites
Procedure 10.5. Undeploy an Application in a Standalone Server
undeploy command will undeploy and delete the deployment content from a standalone instance of JBoss EAP. To retain the deployment content, add the parameter --keep-content.
Run the
undeploycommandTo undeploy the application and delete the deployment content, enter the Management CLIundeploycommand with the filename of the application deployment.[standalone@localhost:9999 /] undeploy test-application.war
[standalone@localhost:9999 /] undeploy test-application.warCopy to Clipboard Copied! Toggle word wrap Toggle overflow To undeploy the application, but retain the deployment content, enter the Management CLIundeploycommand with the filename of the application deployment and the parameter--keep-content.[standalone@localhost:9999 /] undeploy test-application.war --keep-content
[standalone@localhost:9999 /] undeploy test-application.war --keep-contentCopy to Clipboard Copied! Toggle word wrap Toggle overflow
The specified application is now undeployed. Note that the undeploy command does not produce any output to the Management CLI if it is successful.
10.3.4. Deploy an Application in a Managed Domain Using the Management CLI Copiar enlaceEnlace copiado en el portapapeles!
Prerequisites
Procedure 10.6. Deploy an Application in a Managed Domain
Run the
deploycommandFrom the Management CLI, enter thedeploycommand with the path to the application deployment. Include the--all-server-groupsparameter to deploy to all server groups.[domain@localhost:9999 /] deploy /path/to/test-application.war --all-server-groups
[domain@localhost:9999 /] deploy /path/to/test-application.war --all-server-groupsCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Alternatively, define specific server groups for the deployment with the
--server-groupsparameter.[domain@localhost:9999 /] deploy /path/to/test-application.war --server-groups=server_group_1,server_group_2
[domain@localhost:9999 /] deploy /path/to/test-application.war --server-groups=server_group_1,server_group_2Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Note that a successful deploy does not produce any output to the CLI.
The specified application is now deployed to a server group in your managed domain.
10.3.5. Undeploy an Application in a Managed Domain Using the Management CLI Copiar enlaceEnlace copiado en el portapapeles!
Prerequisites
Procedure 10.7. Undeploy an Application in a Managed Domain
Run the
undeploycommandFrom the Management CLI, enter theundeploycommand with the filename of the application deployment. The application can be undeployed from any server group that it was originally deployed to with the addition of the--all-relevant-server-groupsparameter.[domain@localhost:9999 /] undeploy test-application.war --all-relevant-server-groups
[domain@localhost:9999 /] undeploy test-application.war --all-relevant-server-groupsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note that a successful undeploy does not produce any output to the CLI.
The specified application is now undeployed.