How to install Mule in AWS

By | August 28, 2015

This was an interesting challenge and one where I couldn’t find step by step instructions on Google or the Mulesoft website. So I ended up trying this myself and hope this is useful for others.

– Access to AWS EC2 environment.

Step 1: Create a new instance

Launch a new Ubuntu instance.

Choose at least t2.small or above because you need at least 2Gb of RAM.
Then click Review and Launch >> Launch


If you choose t2.micro or anything with less RAM, you’ll get this error:


ie Mulesoft There is insufficient memory for the Java Runtime Environment to continue. error’=Cannot allocate memory’

Step 2: Connect to your instance.

You will have had to create some keys to allow you to connect to the instance via command line. See this link here if you need a refresher.

To connect, use this format

ssh -i /path/to/cert

The command I used to connect to my instance was:

ssh -i muledemo.pem

Now you are in a basic Ubuntu environment where you can now start to install Mule.


Step 3: Install Mule

mkdir mule 
cd mule
tar -xvzf mule-ee-distribution-standalone-3.7.1.tar.gz

This translates to:

  • create a directory
  • go into the directory
  • download Mule EE
  • extract the file

Now we can try and start it by running:


You should get this error:


ie Mule: ERROR: java could not be found. PLease install the JRE or JDK
This is a good sign.

Step 4: Install Java

To get rid of this we need to install Java. Run these commands:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Now if you run

java -version

you should get:

Now try to run mule again by typing


and you should get:

Congratulations! You now have Mule up and running.


5 thoughts on “How to install Mule in AWS

    1. cloudnthings Post author

      Yes you can. I haven’t tried it but just follow the docs.

  1. mulemuse

    I am trying to install a local mule installation file. I have transferred that over via FileZilla onto my mule folder. I am unable to check if the mule if up and running on windows. Is there any specific command for that?


Leave a Reply

Your email address will not be published. Required fields are marked *