How to set up mule server in Hybrid Cloud

Priyanka Paul
4 min readOct 30, 2020

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

Prerequisites:

1. Anypoint Cloudhub account

2. Virtual Machine with

3. Mulesoft standalone run-time.

4. Valid mulesoft enterprise licence

Download and 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 the unique name of your server and copy the AMC command.

Step 4: 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 5: In the same command prompt type “mule install

*** Tips : 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 the Windows Services tab.

Step 8: Go to any point platform and check if the server is running in a specific environment

Install an Enterprise License

Once you set up the runtime server, we need to perform 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 !!

--

--

Priyanka Paul

Hello Techies, I love to learn and grow. Currently working as mulesoft Developer @Salesforce . I have experience in both backend(java) and middleware (MuleSoft)