How to Deploy and Undeploy an Application in Oracle GlassFish Application Server
The easiest way of deploying an application through the command line is by using the following command:
# asadmin deploy [ path of file ]/webapp1.war
Access the webapp1 application by typing the following URL in your browser:
http://localhost:8080/webapp1
The asadmin executable can be used to undeploy an application as well by issuing the following command:
# asadmin undeploy webapp1
The following message should be shown at the bottom of the terminal window:
Command undeploy executed successfully
# asadmin deploy [ path of file ]/webapp1.war
Access the webapp1 application by typing the following URL in your browser:
http://localhost:8080/webapp1
The asadmin executable can be used to undeploy an application as well by issuing the following command:
# asadmin undeploy webapp1
The following message should be shown at the bottom of the terminal window:
Command undeploy executed successfully
Comments
Post a Comment