Running the Product
To run WSO2 products, you start the product server at the command line. The following sections in this page explains everything you need to know about running the product:
Starting the server
When starting WSO2 EMM, it is mandatory to have an active internet connection; otherwise, the devices will not be able to connect to EMM.
Follow the instructions below to start your WSO2 product based on the Operating System you use:
On Windows/Linux/Mac OS
To start the server, you runĀ <EMM_HOME>/bin/wso2server.bat
Ā (on Windows) orĀ <EMM_HOME>/bin/wso2server.sh
Ā (on Linux/Mac OS) from the command prompt as described below. Alternatively, you can install and run the server as a Windows service or Linux service.
- Open a command prompt by following the instructions below:
- On Windows: ClickĀ Start -> Run,Ā typeĀ
cmd
Ā at the prompt, and then pressĀ Enter. - On Linux/Mac OS: Establish an SSH connection to the server, log on to the text Linux console, or open a terminal window.
- Navigate to theĀ
<EMM_HOME>/bin/
Ā directory using theĀ Command Prompt. - Execute one of the following commands:
- To start the server in a typical environment:
- On Windows:Ā Ā
wso2server.bat --run
On Linux/Mac OS:Ā Ā
sh wso2server.sh
- On Windows:Ā Ā
To start the server in the background mode of Linux:Ā
sh wso2server.sh start
To stop the server running in this mode, you will enter:Āsh wso2server.sh stop
To provide access to the production environment without allowing any user group (including admin) to log into the Management Console:
- On Windows:Ā
wso2server.bat --run -DworkerNode
- On Linux/Mac OS:Ā
sh wso2server.sh -DworkerNode
- On Windows:Ā
- To check for additional options you can use with the startup commands,Ā typeĀ
-help
Ā after the command, such as:Ā
sh wso2server.sh -help
Ā (see the related topics section at the end of this page). 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".
On Solaris
To start the server, you runĀ <EMM_HOME>/bin/wso2server.sh
Ā from the Command Prompt as described below.Ā
Following instructions are tested on 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. - Navigate to theĀ
<EMM_HOME>/bin
Ā directory using theĀ Command Prompt. - Execute the following command:
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".
<EMM_HOME>/bin/wso2server.sh
file, to start the product as a service/nohup mode in Solaris.- OpenĀ the
<EMM_HOME>/bin/wso2server.sh
file in a text editor. - Search for the following occurrences:Ā nohup sh "$CARBON_HOME"/bin/wso2server.sh $args > /dev/null 2>&1 &
Replace those occurrences with the following: Ā nohupĀ bashĀ "$CARBON_HOME"/bin/wso2server.sh $args > /dev/null 2>&1 &
The only change is replacingĀ
sh
Ā withĀbash
. This is required only for Solaris.Start the product by following the above instructions.
Accessing the EMM Console
Once the server has started, you can access the WSO2 EMM Consoles.Ā You can also use the EMM Console on this computer or from any other computer connected to the Internet or LAN.
When these pages appear, the web browser will typically display an "insecure connection" message, which requires your confirmation before you can continue.
The EMM consoles are based on the HTTPS protocol, which is a combination of HTTP and SSL protocols. This protocol is generally used to encrypt the traffic from the client to server for security reasons. The certificate it works with is used for encryption only, and does not prove the server identity, so when you try to access these consoles, a warning of untrusted connection is usually displayed. To continue working with this certificate, some steps should be taken to "accept" the certificate before access to the site is permitted. If you are using the Mozilla Firefox browser, this usually occurs only on the first access to the server, after which the certificate is stored in the browser database and marked as trusted. However, with other browsers, the insecure connection warning might be displayed every time you access the server.
This scenario is suitable for testing purposes, or for running the program on the company's internal networks. If you want to make these consoles available to external users, your organization should obtain a certificate signed by a well-known certificate authority, which verifies that the server actually has the name it is accessed by and that this server belongs to the given organization.
If you leave the EMM console unattended, the session will time out. The default timeout value is 15 minutes, but you can change this in the <EMM_HOME>/repository/conf/tomcat/carbon/WEB-INF/web.xml
file as follows:
<session-config> <session-timeout>15</session-timeout> </session-config>
Stopping the server
To stop the server, press Ctrl+C in the command window.
What's next
- Are you an EMM server administrator that looks at installing and starting the EMM server? If yes, go to the Server Administrator guide.
- Are you an EMM administrator that looks at configuring WSO2 EMM? If yes, go to theĀ EMM Administrator guide.
- Are you an EMM device owner? If yes, go to theĀ Device Owner guide.