Prerequisites
Hardware/software requirements: https://docs.mulesoft.com/mule-runtime/4.4/hardware-and-software-requirements
Network accesses:
https://docs.mulesoft.com/runtime-manager/rtm-agent-allowlists https://docs.mulesoft.com/runtime-fabric/2.1/install-self-managed-network-configuration
EU http://eu1.anypoint.mulesoft.com 443 EU mule-manager.eu1.anypoint.mulesoft.com 443 EU runtime-manager.eu1.anypoint.mulesoft.com 443 EU analytics-ingest.eu1.anypoint.mulesoft.com 443 EU arm-auth-proxy.prod-eu.msap.io 443 EU data-authenticator.eu1.anypoint.mulesoft.com 443 EU exchange2-asset-manager-kprod-eu.s3.eu-central-1.amazonaws.com 443 EU dias-ingestor-router.eu-central-1.prod-eu.msap.io 443
Installing Java
Download the supported by Mule version of Java from https://adoptium.net/temurin/releases/ . You can check the supported by Mule version of Java on https://docs.mulesoft.com/mule-runtime/4.4/hardware-and-software-requirements
The version of Java that is being installed at the time of writing this article: OpenJDK11U-jdk_x64_windows_hotspot_11.0.18_10.zip
Extract the distributive to the installation path on a new server (for example, “C:\opt\java”)
Add the environment variables:
Click Win+R button
Write “sysdm.cpl“ and click Enter
Go to “Advanced“ tab
Click the “Environment variables“
Add the new “JAVA_HOME” environment variable with your path (for example, “C:\opt\java\jdk-11.0.18+10“)
Add the new value “%JAVA_HOME%\bin“ in the “Path“ variable:
Check that Java was installed in cmd or PowerShell console (reopen PowerShell console if it was open when you add
the environment variables)
java -version
Installing Mule
Download the actual version of MuleSoft Runtime from https://help.mulesoft.com/s/downloads (need login).
The version of MuleSoft that is being installed at the time of writing this article:
Name Version Release Date mule-ee-distribution-standalone-4.4.0- 20230223.zip 4.4.0-February-2023-Update 02-24- 2023
Extract the distributive to the installation path on a new server (for example, “C:\opt\mule”)
Run PowerShell as an administrator
Install Mule (for more information visit https://docs.mulesoft.com/mule-runtime/4.4/runtime-installation-task
)
Define $MULE_HOME environment variable:
Install Mule:
Install an Enterprise License (for more information visit https://docs.mulesoft.com/mule-runtime/4.4/installing-an-enterprise-license
)
Download “license.lic“ form Mule Support portal
Copy “license.lic“ to “$MULE_HOME\bin” folder
Delete old “muleLicenseKey.lic” in “$MULE_HOME\conf” folder (if exists):
Install the license:
Verify the license:
Enable TLSv1
in $MULE_HOME/conf/tls-default.conf, add TLSv1 on the enabledProtocols setting
enabledProtocols=TLSv1,TLSv1.1,TLSv1.2
Start Mule (for more information visit https://docs.mulesoft.com/mule-runtime/4.4/starting-and-stopping-mule-esb )
Add the server to Anypoint Runtime Manager (for more information visit https://docs.mulesoft.com/runtime-manager/servers-create )
From Anypoint Platform, select Runtime Manager.
Choose the environment for the server
Click Servers in the left menu.
Click the Add Server button.
Enter a name for your server.
Click Copy command
Go to “$MULE_HOME\bin\“
Run the Command
Restart the Mule service (or reboot the server)
Add the server to Anypoint Monitoring (for more information visit https://docs.mulesoft.com/monitoring/am-installing )
From Anypoint Platform, select Monitoring.
In the Anypoint Monitoring navigation menu, click Settings.
To install Anypoint Monitoring to monitor applications deployed to a local server, select Hybrid.
Select the new server to deploy Anypoint Monitoring
Download the am.zip
Extract the zip file to your Mule home directory on the new server , which will create a new folder
called
am
cd into the am folder and run the installation
Restart the Mule service (or reboot the server)
cd into am folder again and run
In 5 minutes, you should see metrics appear in Anypoint Monitoring
(ONLY FOR PRODUCTION) Add servers to cluster:
Additional inks:
https://help.mulesoft.com/s/article/How-to-set-CPU-affinity-for-a-Mule-ESB-process-in-Windows-as-a-Service
https://help.mulesoft.com/s/article/Start-Runtime-on-Windows-Fails-With-The-Mule-Enterprise-Edition-service-is-not-installed
https://docs.mulesoft.com/mule-runtime/4.4/runtime-installation-task