To run WSO2 products, you start the product server at the command line. This page describes how to run the product in the following sections:
Starting the server
To start the server, you run the script wso2server.bat
(on Windows) or wso2server.sh
(on Linux/Solaris) from the bin
folder. Alternatively, you can install and run the server as a Windows service.
To start and stop the server in the background mode of Linux, run wso2server.sh start
and wso2server.sh stop
commands.
- Open a command prompt:
- On Windows, choose Start -> Run, type
cmd
at the prompt, and press Enter. - On Linux/Solaris, establish a SSH connection to the server or log in to the text Linux console.
- Execute one of the following commands, where
<ELB_HOME>
is the directory where you installed the product distribution: - On Windows:
<ELB_HOME>/bin/wso2server.bat --run
On Linux/Solaris:
sh <ELB_HOME>/bin/wso2server.sh
For additional options you can use with these startup commands, type
-help
after the command, such as:sh <PRODUCT_HOME>/bin/wso2server.sh -help
The operation log appears. When the product server is running, the log displays the message "WSO2 Carbon started in 'n' seconds."
Stopping the server
To stop the server, press Ctrl+C in the command window.