Mule ESB installation on Debian
From MyWiki
(Difference between revisions)
(One intermediate revision not shown) | |||
Line 5: | Line 5: | ||
<pre> | <pre> | ||
# cd /usr/local | # cd /usr/local | ||
- | # gzip -dc | + | # gzip -dc mule-standalone-3.4.0.tar.gz |tar xvf - |
# ln -s mule mule-standalone-3.4.0 | # ln -s mule mule-standalone-3.4.0 | ||
# chown -R root:staff mule-standalone-3.4.0 | # chown -R root:staff mule-standalone-3.4.0 |
Current revision as of 16:30, 20 April 2014
First, download Mule stand-alone for Linux from Mulesoft web site.
Copy it to your server and extract somewhere. I'll do into /usr/local
# cd /usr/local # gzip -dc mule-standalone-3.4.0.tar.gz |tar xvf - # ln -s mule mule-standalone-3.4.0 # chown -R root:staff mule-standalone-3.4.0
Check your java version:
# java -version
I didn't have any installed and downloaded the latest available from Java.com:
# cd /usr/local # gzip -dc jre-7u51-linux-x64.tar.gz | tar xvf - # ln -s jre1.7.0_51 java
Set PATH to Java and JAVA_HOME:
# vi /etc/profile.d/jdk.sh
Add the following line to the new file and save it:
# cat /etc/profile.d/jdk.sh # Add path to Java PATH=${PATH}:/usr/local/java/bin export PATH JAVA_HOME=/usr/local/java export JAVA_HOME
Check that you can launch Mule
# mule
Enable boot time start:
# which mule # vi `which mule` # ln -s /usr/local/mule/bin/mule /etc/init.d/mule # /etc/init.d/mule # update-rc.d mule start 99 2 3 4 5 . stop 99 0 1 6 .
Add PATH to the top of the script, otherwise it won't find Java on reboot:
#! /bin/sh PATH=${PATH}:/usr/local/java/bin # Copyright (c) 1999, 2006 Tanuki Software Inc. # # Java Service Wrapper sh script. Suitable for starting and stopping # wrapped Java applications on UNIX platforms.
Check that the service can start:
# service mule start # ps -ef | grep mule # service mule stop # ps -ef | grep mule
Logs are in /usr/local/mule/logs/
Applications deployed by copying .zip archive of the app into $MULE/apps directory
# ls /usr/local/mule/apps/ default default-anchor.txt product.registration product.registration-anchor.txt
You can check the Mule log how the hot deployment went:
tail -f /usr/local/mule/logs/mule.log