To Download and Install the Mule Runtime EE Standalone

Before downloading and installing Mule runtime, make sure you have Java SE JDK 1.8 installed, for example:

$ java -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)

To Download Mule

  1. Download the Mule 4 binary file from the Download Site and unzip it:

    The Mule 4 binary files are located under Downloads > Mule Runtime on the Download Site.

  2. Set an environment variable called MULE_HOME for the mule directory inside your extracted folder.

    Example for version 4.1.1 in the Downloads directory:

    On Windows:

    $ env:MULE_HOME=C:\Downloads/mule-enterprise-standalone-4.1.1/

    On Linux/Unix environments:

    $ export MULE_HOME=~/Downloads/mule-enterprise-standalone-4.1.1/

To Start the Mule Service

You can run the Mule runtime standalone by starting the Mule service inside $MULE_HOME/bin/` directory:

  • On Windows environments:

    $ $MULE_HOME/bin/mule.bat start
  • On Linux/Unix environments:

    $ $MULE_HOME/bin/mule start

    This example starts Mule from a Unix console:

    $ $MULE_HOME/bin/mule start
    MULE_HOME is set to ~/Downloads/mule-enterprise-standalone-4.1.1
    MULE_BASE is set to ~/Downloads/mule-enterprise-standalone-4.1.1
    Starting Mule Enterprise Edition...
    Waiting for Mule Enterprise Edition.................
    running: PID:87318

To Deploy Mule Apps

  1. Start Mule (see To Start the Mule 4 Service).

  2. After Mule runtime boots, you can deploy your Mule apps by moving your packaged JAR files to the apps directory in $MULE_HOME.

To Stop Mule

Use the stop command to Mule from running.

This example stops Mule from a Unix console:

$ $MULE_HOME/bin/mule stop
MULE_HOME is set to /Applications/mule-enterprise-standalone-4.1.1
MULE_BASE is set to /Applications/mule-enterprise-standalone-4.1.1
Stopping Mule Enterprise Edition...
Stopped Mule Enterprise Edition.