How to Set Up Mule Server in Hybrid Cloud?

Author: Priyanka Paul

Anypoint Platform’s hybrid cloud functionality, built into MuleSoft hosted control plane and customer hosted runtime plan without iPass facility, allows organizations to run the same APIs or applications across multiple cloud environments or on-premises. Anypoint Platform enables the creation of a hybrid infrastructure with the following capabilities:

  • Run apps on-premises, on MuleSoft’s CloudHub or any other public or private cloud
  • Manage runtimes across a hybrid IT environment from a single management view
  • Deploy apps between cloud and on-premises environments without code alteration
  • Reduce operational costs by deploying apps and APIs in Dockerized containers


1. Anypoint Cloudhub Account

2. Virtual Machine

3. MuleSoft Standalone Run-Time

4. Valid MuleSoft Enterprise License

Download & Installation:

Step 1: Download the Mule 4 binary file from the link and unzip it in your system(VM).

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

Example: C:\Software List\mule\mule-enterprise-standalone-4.3.0

On Windows environments:

Step 3: Go to Anypoint Platform Runtime Manager and select the environment. Example: Sandbox
Then go to Servers tab and select add server.

Step 4: Define a unique name of your server and copy the amc command.

Step 5: Now go to “%MULE_HOME%\bin” location or C:\Software List\mule\mule-enterprise-standalone-4.3.0\bin folder and open Command prompt and paste this command and run.

Configuring Mule as a Windows Service:

Step 6: In the same command prompt type “mule install

-To install Mule as a Windows Service, type: mule install

-To remove Mule from your server, type: mule remove

-To stop Mule, press CTRL-C in the terminal in which the script is running

Step 7:  After you install Mule as a service, you can start, stop, and restart Mule service in Windows Services tab. 

Install an Enterprise License

MuleSoft makes available a trial version of the Enterprise Edition of Mule runtime engine(Mule) for the purpose of evaluation.

Complete the following steps to acquire and install a non-trial Enterprise license before you use Mule runtime in a production environment.

  • Contact your MuleSoft account representative to acquire an Enterprise license in the form of a license.lic file.
  • Before installing, it’s recommended to remove the previous license from your $MULE_HOME directory:
  • Navigate to $MULE_HOME/conf/.
  • Delete the existing muleLicenseKey.lic file.
  • If you are installing your license on multiple platforms, back up your new license.lic file in another location before proceeding.
  • Make sure that the Mule Server is stopped (not running) and then open the terminal or command line on your system.
  • On Mac/Unix/Linux, from the $MULE_HOME/bin directory, run the following command:  mule -installLicense ~/license.lic.
  • On Windows, first copy the license.lic file into the \bin folder, then execute the following in the command line:mule -installLicense license.lic.
  • In the $MULE_HOME/conf directory, Mule saves a new file called muleLicenseKey.lic. This shows that the license has been installed.
  • Start your Mule Server again.

How to Verify or Remove Enterprise Edition License?

  • Make sure that the Mule Server is stopped and then open the terminal or command line on your system.
  • To verify that Mule successfully installed your Enterprise license, run the following command: mule -verifyLicense.
  • To uninstall a previously installed license, run the following command: mule -unInstallLicense.
  • Sometimes the license installation fails and it might be necessary to manually delete $MULE_HOME/conf/muleLicenseKey.lic.

 Thank you for reading! Let me know if you have any questions.

We use cookies on this site to enhance your user experience. For a complete overview of how we use cookies, please see our privacy policy.