In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How do I deploy ActiveMQ in a Linux environment? In view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.
ActiveMQ needs the support of JDK
Second, install ActiveMQ
1. Decompress apache-activemq-5.14.3-bin.tar.gz
Tar-zxvf apache-activemq-5.14.3-bin.tar.gz
2. Enter
Cd apache-activemq-5.14.3/bin
3. Start activemq
. / activemq start
At this point, our ActiveMQ is running.
(note: we use a root account and turn off the system firewall)
III. Use
ActiveMQ comes with a web server (jetty, developed by java). If you don't understand, it doesn't matter, let's just learn how to use it.
Apache-activemq-5.14.3/conf/jetty.xml is the basic configuration of the server.
Access the web server:
Http://10.211.55.13:8161/
Default background:
Http://10.211.55.13:8161/admin
User name: admin
Password: admin
View the queue:
Http://10.211.55.13:8161/admin/queues.jsp
Attached: linux installation jdk
1. Download
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Download jdk-8u121-linux-x64.tar.gz.
Or download jdk-8u121-linux-x64.rpm.
(note that select the corresponding system version. We are using centos, so choose linux x64)
2. Give permission
Chmod + x jdk-8u121-linux-x64.rpm
3. Installer
Rpm-ivh jdk-8u121-linux-x64.rpm
4. Check after installation
Cd / usr# found an extra 'java' directory cd / java#default jdk1.8.0_121 latest' below.
5. Configure environment variables
Vi / etc/profile# adds # set java environmentexport JAVA_HOME=/usr/java/jdk1.8.0_121export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarexport PATH=$PATH:/usr/local/php/bin:$JAVA_HOME/bin at the end
Use the echo command at the terminal to check the setting of the environment variable.
# echo $JAVA_HOME#echo $CLASSPATH#echo $PATH
Check that JDK is installed successfully.
# java-versionjava version "1.8.0U121" Java (TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot (TM) 64-Bit Server VM (build 25.121-b13, mixed mode) what is the Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system Using Linux, you can run major Unix tools, applications, and network protocols.
This is the answer to the question about how to deploy ActiveMQ in the Linux environment. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.
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.