Mule ESB installation on Debian

From MyWiki

(Difference between revisions)
Jump to: navigation, search
(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…')
 
(3 intermediate revisions not shown)
Line 5: Line 5:
<pre>
<pre>
# cd /usr/local
# cd /usr/local
-
# gzip -dc ~amarkelo/mule-standalone-3.4.0.tar.gz |tar xvf -
+
# 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
Line 15: Line 15:
#  java -version
#  java -version
</pre>
</pre>
 +
 +
I didn't have any installed and downloaded the latest available from Java.com:
<pre>
<pre>
-
#  gzip -dc ~amarkelo/jre-7u51-linux-x64.tar.gz |tar xvf -
+
# cd /usr/local
 +
#  gzip -dc jre-7u51-linux-x64.tar.gz | tar xvf -
#  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
-
# export PATH=$PATH:/usr/local/java/bin:/usr/local/mule/bin
+
</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 57:
#  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:

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
Personal tools