Start the server, by invoking the following script:
product_installation_root/bin/startServer.cmd
The server will start, using the default configuration file. To change configuration files or perform other related tasks, see the advanced tasks.
Stop the server, by invoking the following script:
product_installation_root/bin/stopServer.cmd
By default, the script attempts to stop the application server configured in the default configuration file:
product_installation_root/config/server-cfg.xml
If you are running an application server using a different configuration file, you can specify that configuration file on the stopServer command, using the -configFile parameter.
Alternatively, you can use the administrative console to stop an application server.
The remainder of this article provides instructions for tasks closely related to starting the server.
By default, the startServer script starts an application server, using configuration file:
product_installation_root/config/server-cfg.xml
You can override the default configuration by specifying your own configuration file, using the -configFile <full path to XML configuration file> parameter.
On Windows-based systems, a start Application Server entry is added to the program folder for WebSphere Application Server. If you want to run with a server configuration other than server-cfg.xml, update the program folder entry to specify the desired configuration file.
The start process launches the application server as a background process. All application server output (stdout and stderr) is routed to files as configured in the server configuration file (such as product_installation_root/logs/default_server_stdout.txt. Output from the launch process appears in the command shell window from which you issued startServer.
To verify that the launched application server is running, you can either check the stdout log, use the Administrative Console to ping the server, or the DrAdmin tool to test a connection to the server. An example invocation using the default configuration is as follows:
DrAdmin -configurationFile ..\config\server-cfg.xml -testConnection
The characteristics of the application server process are defined under the Process Definition object in the server configuration. In the case that you wish to have more control over how the application server is launched, you can specify the -script parameter with the startServer command. This will generate a script that can be used to start the application server directly from the command shell.
To see the complete command line usage for startServer, enter:
startServer -usage
Additional information is available by entering:
startServer -help