Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To run WSO2 products, you start the product server at the command line. You can then run the Management Console to configure and manage the product.

...

  1. 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/Solaris/Mac OS: Establish an SSH connection to the server, log in to the text Linux console, or open a terminal window.
  2. Execute one of the following commands:
    • To start the server in a typical environment:
      • On Windows:  <CEP_HOME>\bin\wso2server.bat --run
      • On Linux/Solaris/Mac OS:  sh <CEP_HOME>/bin/wso2server.sh

    • To start the server in the background mode of Linux: sh <CEP_HOME>/bin/wso2server.sh start
      To stop the server running in this mode, you will enter: sh <CEP_HOME>/bin/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: <CEP_HOME>\bin\wso2server.bat --run -DworkerNode
      • On Linux/Solaris/Mac OS: sh <CEP_HOME>/bin/wso2server.sh -DworkerNode
    • To check for additional options you can use with the startup commands, type -help after the command, such as:
      sh <CEP_HOME>/bin/wso2server.sh -help (see the related topics section at the end of this page).
  3. 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

    If you are running the CEP on a computing device that does not have a local display, the following error may occur.

    Code Block
    ERROR
    {org.apache.catalina.core.StandardContext} - Exception sending context initialized event to listener instance of class org.apache.shindig.common.servlet.GuiceServletContextListener
    java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit

    In order to avoid this, add the following system property to the start-up script.

    -Djava.awt.headless=true

Running the Management Console

...

sh <CEP_HOME>/bin/wso2server.sh stop

Excerpt
hiddentrue

 

Related topics

NOTE TO WRITERS: copy this content manually to your change and add relative links to the appropriate pages within your document. If you do not have an HTTP-NIO Transport page in your doc, point to the page in the relevant version of the Carbon docs.

  • HTTP-NIO Transport
  • Installing as a Windows Service
  • Installing as a Linux Service
  • Product Startup Options (NOTE TO WRITERS: Point this link to the page in the Carbon documentation. Make sure you pick the Carbon version that is relevant to the product)