...
Starting the server
Anchor | ||||
---|---|---|---|---|
|
Follow the relevant instructions based on the operating system you use.
On Windows/Linux/Mac OS
To start the server, you run the script wso2server.bat
(on Windows) or wso2server.sh
(on Linux/SolarisMac OS) from the bin
folder. Alternatively, you can install and run the server as a Windows service.
Info |
---|
To start and stop the server in the background mode of Linux, run |
- Open a command prompt:
- On Windows, choose Start -> Run, type
cmd
at the prompt, and press Enter. - On Linux/SolarisMac OS, establish a SSH connection to the server or log in to the text Linux console.
- On Windows, choose Start -> Run, type
- Execute one of the following commands, where
<BPS_HOME>
is the directory where you installed the product distribution:- On Windows:
<BPS_HOME>/bin/wso2server.bat --run
On Linux/SolarisMac OS:
sh <BPS_HOME>/bin/wso2server.sh
Info If you want to provide access to the production environment without allowing any user group (including admin) to log into the management console, execute one of the following commands.
- On Windows:
<PRODUCT_HOME>\bin\wso2server.bat --run -DworkerNode
- On Linux/Mac OS:
sh <PRODUCT_HOME>/bin/wso2server.sh -DworkerNode
For additional options you can use with these startup commands, type
-help
after the command, such as:sh <BPS_HOME>/bin/wso2server.sh -help
- On Windows:
- On Windows:
The operation log appears. When the product server is running, the log displays the message "WSO2 Carbon started in 'n' seconds."
On Solaris
To start the server, run <PRODUCT_HOME>/bin/wso2server.sh
(on Solaris) from the Command Prompt as described below.
Anchor | ||||
---|---|---|---|---|
|
Note |
---|
Following instructions are tested for an Oracle Solaris 10 8/11 x86 environment. |
- Click Launch -> Run Applications, type
dtterm
at the Prompt, and then press Enter, to open a Command Prompt. - Execute the following command:
<PRODUCT_HOME>/bin/bash wso2server.sh.
The operation log appears in the command window. When the product server has successfully started, the log displays the message "WSO2 Carbon started in 'n' seconds".
Info | ||
---|---|---|
You need to do the following modification to the <PRODUCT_HOME>/bin/wso2server.sh file, to start the product as a service/nohup mode in Solaris.
|
Running the management console
Anchor | ||||
---|---|---|---|---|
|
Once the server has started, you can run the Management Console by opening a Web browser and typing in the management console's URL. The URL is displayed towards the end of the server start script's console and log. For example:
...
You can use this URL to access the Management Console on this computer from any other computer connected to the Internet or LAN. When accessing the Management Console from the same server where it's installed, you can type "localhost" instead of the IP address: https://localhost:9443/carbon
Tip | |||||
---|---|---|---|---|---|
Tip: The Management Console URL depends on can be changed by modifying the value of the
|
...
If you leave the Management Console unattended, the session will time out. The default timeout value is 15 minutes, but you can change this in the <IS<BPS_HOME>/repository/conf/tomcat/carbon/WEB-INF/web.xml
file as follows:
Code Block | ||
---|---|---|
| ||
<session-config> <session-timeout>15</session-timeout> </session-config> |
Info | ||||||
---|---|---|---|---|---|---|
| ||||||
You can restrict access to the management console of your product by binding the management console with selected IP addresses. Note that you can either restrict access to the management console only, or you can restrict access to all web applications in your server as explained below.
Note: Any configurations (including valves) defined in the <PRODUCT_HOME>/repository/conf/tomcat/catalina-server.xml file applies to all web applications and is globally available across server, regardless of host or cluster. See the official Tomcat documentation for more information about using remote host filters. |
Stopping the server
Anchor | ||||
---|---|---|---|---|
|
...