Install ACTIVEMQ under Windows and CentOS

Source: Internet
Author: User

Version: Apache-activemq-5.10.2-bin.zip (version 5.11+ requires jdk7+) official website: http://activemq.apache.org/download.html Windows installation 1, download the decompression window version of the ACTIVEMQ:APACHE-ACTIVEMQ-5.10.0-BIN.ZIP;2, go to extract directory: Bin, according to the operating system 32bit/64bit, enter a different folder Win32/win64;3, double-click " Activemq.bat;4, default with 8161 port to provide management console services, address: http://127.0.0.1:8161/admin/Management password storage: Conf/jetty-realm.properties # Usernam    E:password [, RoleName ...] Admin:admin, admin user:user, USER5, default JMS service with 61616 ports CentOS installationA sincere conclusion: official documents and official tutorials are the most convenient way to learn. at first, the installation of ACTIVIMQ on CentOS always failed to start, depressed for a whole day, until evening, on the official website see "Using ActiveMQ > Getting Started"Only understand is because the latest version of the download requires a high version of JDK7 caused;

1, download, unzip, move to the running directory:

# wget http://mirrors.cnnic.cn/apache/activemq/5.10.2/apache-activemq-5.10.2-bin.tar.gz (version 5.11+ requires jdk7+) # tar zxvf a pache-activemq-5.10.2-bin.tar.gz# MV Apache-activemq-5.10.2/usr/local/activemq
# CD/USR/LOCAL/ACTIVEMQ 2, modify the default allocation of memory: (default 1G, sometimes too large, insufficient memory error)#/USR/LOCAL/ACTIVEMQ/BIN/ACTIVEMQ Console (console start) Error occurred during initialization of Vmcould not reserve Enoug H Space for object heap reason: Insufficient memory view ACTIVEMQ file found: # Set JVM memory configurationif [-Z ' $ACTIVEMQ _opts_memory "]; Then activemq_opts_memory= "-xms1g-xmx1g" fi my virtual machine maximum memory is 512M, plus virtual memory is not enough; fix: Change the allocated memory size 512m# cp/usr/local/activemq/bin/ activemq/usr/local/activemq/bin/activemq.bak# Vi/usr/local/activemq/bin/activemq found: ACTIVEMQ_OPTS_MEMORY= "-Xms1G -XMX1G "instead: activemq_opts_memory= "-xms256m-xmx512m" 3. Console, daemon, start/ stop Start#/USR/LOCAL/ACTIVEMQ/BIN/ACTIVEMQ Console (console start) # mkdir/home/root/activemq_log # Nohup/usr/local/activemq/bi N/activemq Start >/home/root/activemq_log/smlog (daemon start) Check Startup # Netstat-ln | grep 61616
ACTIVEMQ Default Adoption 61616The port provides the JMS service, using the 8161Port provides the management console service and executes the following command to verify that the ACTIVEMQ service has been successfully started. Stop # Ps-ef | grep activemq # kill-9 5259
First you need to find the PID of the ACTIVEMQ process, and then, kill the ACTIVEMQ process (where 9 means forced termination) 4 , console, Web interface view: http://127.0.0.1:8161/admin/Console login Username password guaranteed: conf/jetty-realm.properties# Username:password [, rolename ...] Admin:admin, Adminuser:user, user 5. Script Startup# chmod 775/usr/local/activemq/bin/activemq# mkdir/home/root/activemq_log/# vi/home/root/activemq_startup.sh###### ############## #nohup/usr/local/activemq/bin/activemq Start >/home/root/activemq_log/smlog 2>&1 ######### ############# chmod 755/home/root/activemq_startup.sh# vi/etc/rc.d/rc.local The path to the end of the Add script:/home/root/activemq_ startup.sh Start: # sh/home/root/activemq_startup.sh stop: # ps-ef|grep ACTIVEMQ # kill-9 29624  

Install ACTIVEMQ under Windows and CentOS

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.