包含在尋找其他文件熱門支援資源 | 以 PDF 格式下載這本書 (530 KB)
Deploying an Application from the Command LineYou can deploy applications from the command line by using the asadmin deploy command.
|
as-install/bin/asadmin deploy war-name |
To deploy the hello.war sample, the command is:
as-install/bin/asadmin deploy sample-dir/hello.war |
Access the hello application by typing the following URL in a browser window:
http://localhost:8080/hello |
The application's start page is displayed, and you are prompted to type your name.
Hi, my name is Duke. What's yours? |
Type your name and click Submit.
The application displays a customized response, giving you a personal Hello.
See deploy(1) for more information about the deploy command.
See Sun GlassFish Enterprise Server v3 Prelude Application Deployment Guide for more information about deploying applications from the command line.
Use the asadmin list-applications command:
as-install/bin/asadmin list-applications |
Use the asadmin undeploy command.
The general form for the command is:
as-install/bin/asadmin undeploy war-name |
For war-name, use the literal hello, not the full hello.war name.
For the hello.war example, the command is:
as-install/bin/asadmin undeploy hello |
See undeploy(1) for more information about the undeploy command.