Mule ESB installation on Debian
From MyWiki
(Difference between revisions)
(Created page with '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 <pre> # cd /usr/local # gzip -dc ~amark…') |
|||
Line 20: | Line 20: | ||
# ln -s jre1.7.0_51 java | # ln -s jre1.7.0_51 java | ||
</pre> | </pre> | ||
+ | |||
+ | Set PATH to Java and JAVA_HOME: | ||
<pre> | <pre> | ||
- | # vi /etc/profile | + | # vi /etc/profile.d/jdk.sh |
- | # | + | </pre> |
+ | |||
+ | Add the following line to the new file and save it: | ||
+ | |||
+ | <pre> | ||
+ | # 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 | ||
</pre> | </pre> | ||
Line 41: | Line 54: | ||
# update-rc.d mule start 99 2 3 4 5 . stop 99 0 1 6 . | # update-rc.d mule start 99 2 3 4 5 . stop 99 0 1 6 . | ||
</pre> | </pre> | ||
+ | |||
+ | Add PATH to the top of the script, otherwise it won't find Java on reboot: | ||
+ | |||
+ | <pre> | ||
+ | #! /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. | ||
+ | </pre> | ||
+ | |||
Check that the service can start: | Check that the service can start: |
Revision as of 16:29, 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 ~amarkelo/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
# gzip -dc ~amarkelo/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