In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
I use ActiveMQ all the time at work, but I don't know much about it. Through the translation of ActiveMQ official documents, on the one hand, we can deepen our understanding, and on the other hand, we will start a new practice of English that has been forgotten for a long time.
First, prepare before installation
Hardware:
AMQ 4.X binary installation package: 33 MB of hard disk space
AMQ 4.X source or developer mode 200 megabytes of hard disk space
Operating system:
Windows: Windows XP SP2, Windows 2000, Windows Vista, Windows 7.
Unix: Ubuntu Linux, Powerdog Linux, MacOS, AIX, HP-UX, Solaris, or any unix platform that supports java
Environment:
JDK1.4.x or higher. 1.5.x compile the build. For AMQ5.5.0, you need JDK1.6.0.
The JAVA_HOME environment variable must point to the installation folder of JDK
When installing the source code or developer version, MVN1.0.2 or later is required
JARs needs to be added to the classpath path.
II. Windows installation
Includes the installation of binary and source mode AMQ under the windows system.
Installation of binary version under windows
Visit activemq.apache.org/, and click download to select AMQ4.x in the latest release.
On the download page, select the binary version
Extract the zip file to the installation folder
Follow the steps to start using AMQ later in this article
Windows source package installation
AMQ runs on jdk1.4.x, but version 1.5 jdk needs to be compiled and built
The first three steps are the same as above
Build AMQ in mvn2.0.4 or jdk1.5 environment
The command is as follows:
Cd [installation folder]
Mvn clean install-Dmaven.test.skip=true
If you prefer to use IDE, you can do the following
Mvn eclipse:eclipse
Or
Mvn idea:idea
From the AMQ installation folder, do the following:
Cd [activemq_install_dir]\ assembly\ target
Unzip activemq-x.x-SNAPSHOT.zip
Cd activemq-x.x-SNAPSHOT
Bin\ activemq
Note: during use, AMQ will create a folder relative to the current directory. Please perform relevant operations under the AMQ installation directory.
Execute the test AMQ below
Windows developer version
The steps are the same as above, but the download version of AMQ is different.
3. Installation under Unix
Download the zip package
> wget
Http://activemq.apache.org/path/tofile/apache-activemq-4.1.0-incubator.tar.gz
two。 Decompression
> tar zxvf activemq-x.x.x.tar.gz
3. If you do not have the right to execute
> cd [activemq_install_dir] / bin
Chmod 755 activemq
4. Perform the start AMQ and test AMQ below
Unix source code installation
Download and decompress source files as above
Execute in JDK1.5 and mvn2.0.4 or above
Cd [activemq_install_dir]
Mvn clean install
3. If the test function fails in the source file, execute as follows
Cd [activemq_install_dir]
Mvn clean install-Dmaven.test.skip=true
4. You can also use IDE to do related operations. For more information, please see above.
Start using AMQ
1. Under windows
Cd [activemq_install_dir]
Execution
Bin\ activemq
Under 2.Unix
Cd [activemq_install_dir]
Execution
Bin/activemq
OR
Bin/activemq > / tmp/templog 2 > & 1 &
Note: do not close the console or shell that starts AMQ unless you start AMQ under nohup
5. Test AMQ installation
If AMQ starts normally, the following output is displayed:
INFO ActiveMQ JMS Message Broker (ID:apple-s-Computer.local-51222-1140729837569-0:0) has started
The default port of AMQ is 61616, and you can view the progress with the following command:
# windows
Netstat-an | find "61616"
# unix
Netstat-an | grep 61616
VI. Monitoring AMQ
Only use the following address to view locally. Starting from AMQ5.8, the default user name and password for AMQ is admin
Http://localhost:8161/admin
7. Stop AMQ
Under windows and Unix installations, stop running AMQ. Exe from the console or from the shell command line through ctrul+c. AMQ running in the background is terminated by the following command:
Ps-ef | grep activemq
Kill [PID]
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.