Application server - starting and stopping
Use the startAppServer and stopAppServer commands or the equivalent from the Dynamic Workload Console to start or stop the WebSphere Application Server Liberty. For a description of these commands, see startappserver and stopappserver.
These commands also stop appservman, the service that monitors and optionally restarts WebSphere Application Server Liberty.
If you do not want to stop appservman, you can issue startAppServer or stopAppServer, supplying the –direct argument. These scripts are located in TWA_home/appservertools.
- UNIX™
-
- Start the application server
-
./startAppServer.sh [-direct]
- Stop the application server
-
./stopAppServer.sh [-direct]
Note: If your WebSphere Application Server Liberty is installed for the Dynamic Workload Console, use the following syntax:
The user ID and password are optional only if you have specified them in the soap.client.props file located in the properties directory of the WebSphere Application Server Liberty profile. Unlike the master domain manager installation, when you install the Dynamic Workload Console the soap.client.props file is not automatically customized with these credentials../stopAppServer.sh [-direct] [-user <user_ID> -password <password>]
- Windows™
-
- Start the application server
-
startAppServer.bat [-direct]
- Stop the application server
-
stopAppServer.bat [-direct [-wlpHome <installation_directory>] [-options <parameters>]]
- z/OS
-
- Start the application server
-
./startAppServer.sh [-direct]
- Stop the application server
-
./stopAppServer.sh [-direct]
- –direct
- Optionally starts or stops the application server without starting or stopping the application
server monitor appservman.
For example, you might use this after changing some configuration parameters. By stopping WebSphere Application Server Liberty without stopping appservman, the latter will immediately restart WebSphere Application Server Liberty, using the new configuration properties.
This argument is mandatory on UNIX™ when the product components are not integrated.
- –options parameters
- Optionally supplies parameters to the WebSphere Application Server Liberty startServer or stopServer commands. See the WebSphere Application Server Liberty documentation for details.
- –wlpHome installation_directory
- Defines the WebSphere Application Server Liberty installation directory, if it is not the default value.