Pada posting kali ini saya akan mencoba berbagi pengalaman saya pada saat menginstall apache activeMQ di kompi ane yang kebetulan menggunakan OS Linux. Tidak usah berlama – lama langsung kita mulai….
Step 1. Download Apache Active MQ
1. Download disini Apache ActiveMQ
Step 2. Extract File
1. Extract file yang sudah di download tadi ke folder yang kamu inginkan. kalau saya memindahkan file nya ke /opt. Ketikkan perintah berikut :
yudi@YudiMint /opt $ sudo tar -zxvf /media/Data/SoftwareLinux/apache-activemq-5.8.0-bin.tar.gz
2. Jika ActiveMQ startup tidak executable, ganti permissionsnya
chmod 755 activemq
Step 3. Run Apache ActiveMQ
1. Jalankan Apache ActiveMQ
sudo sh activemq start
yudi@YudiMint /opt/apache-activemq-5.8.0/bin $ sudo ./activemq start INFO: Using default configuration (you can configure options in one of these file: /etc/default/activemq /home/yudi/.activemqrc) INFO: Invoke the following command to create a configuration file ./activemq setup [ /etc/default/activemq | /home/yudi/.activemqrc ] INFO: Using java '/usr/lib/jvm/jdk1.6.0_29/bin/java' INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details INFO: pidfile created : '/opt/apache-activemq-5.8.0/data/activemq-YudiMint.pid' (pid '4194') yudi@YudiMint /opt/apache-activemq-5.8.0/bin $
Step 4. Test ActiveMQ
1. Default port ActiveMQ adalah 61616
netstat -an|grep 61616
yudi@YudiMint /opt/apache-activemq-5.8.0/bin $ netstat -an|grep 61616 tcp6 0 0 :::61616 :::* LISTEN yudi@YudiMint /opt/apache-activemq-5.8.0/bin $
Step 5. Monitoring ActiveMQ
1. Untuk activeMQ versi 4.x keatas, anda bisa memonitor activeMQ di webconsole yang bisa anda akses di alamat
http://localhost:8161/admin
Username = admin
Password = admin