Starting or stopping WebSphere Application Server
You can start or stop the application server by using a command-line script. Restarting an application server involves stopping the server, then starting it.
Procedure
-
To start or stop an application server on a Unix-based platform:
- Ensure that your database management system is started.
- Type the following commands in a terminal window:
Where:su - non_root_user cd WC_profiledir/bin
- non_root_user
- The non-root user ID that was created before installing WebSphere Commerce.
- WC_profiledir
- The directory for the WebSphere Application Server profile that is used for WebSphere Commerce.
- Do one of the following:
- To start an application server, enter the following command:
./startServer.sh application_server_name
- To stop an application server, enter the following command:
./stopServer.sh application_server_name
- application_server_name
- The name of the application server you want to start or stop.
Note: If WebSphere Application Server administrative security is enabled, you also need to supply credentials for the WebSphere Application Server commands.Application server name Description server1 Default WebSphere Application Server application server If the WebSphere Commerce node is federated into a WebSphere Application Server Network Deployment cell, you cannot start WebSphere Commerce by using this command. For instructions on starting a node that is federated into a WebSphere Application Server Network Deployment cell, see Starting or stopping an application server under WebSphere Application Server Network Deployment.
- To start an application server, enter the following command:
- To start or stop an application server
on a Windows platform:
- Log on using a Windows user ID that has Administrator authority.
- Start a command prompt session.
- Issue the following command:
WAS_profiledir is the directory for the WebSphere Application Server profile that is used for WebSphere Commerce.cd WAS_profiledir/bin
- Do one of the following:
- To start an application server, enter the following command:
./startServer.bat application_server_name
- To stop an application server, enter the following command:
./stopServer.bat application_server_name
- application_server_name
- The name of the application server that you want to start or stop.
Note: If WebSphere Application Server administrative security is enabled, you also need to supply credentials for the WebSphere Application Server commands.Application server name Description server1 Default WebSphere Application Server application server If the WebSphere Commerce node is federated into a WebSphere Application Server Network Deployment cell, you cannot start WebSphere Commerce by using this command. For instructions on starting a node that is federated into a WebSphere Application Server Network Deployment cell, see Starting or stopping an application server under WebSphere Application Server Network Deployment.
- To start an application server, enter the following command:
- To start or stop an application server
on a iSeries platform:
- Start a Qshell session.
- Do one of the following:
- To start an application server, enter the following command:
WC_profiledir/bin/startServer application_server_name
- To stop an application server, enter the following command:
WC_profiledir/bin/stopServer application_server_name
- To start an application server, enter the following command:
- WC_profiledir
- The directory for WebSphere Application Server profile that is used for WebSphere Commerce.
- application_server_name
- The name of the application server you want to start or stop.