当前位置:网站首页>ActiveMQ installation and deployment simple configuration (personal test)
ActiveMQ installation and deployment simple configuration (personal test)
2022-07-05 12:36:00 【Hua Li Hu Shao】
activemq Installation and deployment file
Installation package download address
http://activemq.apache.org/components/classic/download/
Installation steps
cd Go to the directory where the installation package is located
decompression tar -zxvf apache-activemq-5.2.0-bin.tar.gz
Directory structure :
*bin: Script files
conf: Basic configuration file
data: Log files , such as activemq.log.
docs: Documentation manual
examples: Some simple sample programs
lib:ActiveMQ Some of jar package *
Modify the operation permission ( Don't clear it look :https://blog.csdn.net/qq_41357569/article/details/81178978)
cd /usr/local/apache-activemq-5.2.0( Unzipped file directory )
chmod 777 bin/activemq( Modify the corresponding permissions Here for 777)
function
cd To bin Directory
./activemq start
close
./activemq stop
Check the status
./activemq status
Account and password ( The default is admin)
● After startup ActiveMQ The data for is located in :$ACTIVEMQ_HOME/data/ In the table of contents
● After startup ActiveMQ The run log is located at :$ACTIVEMQ_HOME/data/ In the catalogue activemq.log file
● If you need to change ActiveMQ The log configuration can be modified $ACTIVEMQ_HOME/conf/log4j.properties
Simple configuration
1 : Port number setting
Two port numbers
1, Message communication end Default 61616
2, Background management end Default 8161
Message communication end
vim conf In the catalog activemq.xml Configuration file for , Find the following code , hold 61616 Replace with your new port number
example :
Background management end
vim conf/jetty.xml Revision in China , as follows :
2 : Account and password settings
Two user passwords
1, Message communication end Default admin
2, Background management end Default admin
vim conf/jetty.xml hold false
. Change it to true
. Turn on user password authentication
<bean id="securityConstraint" class="org.eclipse.jetty.util.security.Constraint">
<property name="name" value="BASIC" />
<property name="roles" value="user,admin" />
<!-- set authenticate=false to disable login -->
<property name="authenticate" value="false" />
</bean>
<bean id="securityConstraint" class="org.eclipse.jetty.http.security.Constraint">
<property name="name" value="BASIC" />
<property name="roles" value="admin" />
<property name="authenticate" value="false" />
</bean>
1, Background management end
vim conf/jetty-realm.properties
At the bottom admin:admin, admin user : user ,user
Attention format user name : password , Authority Name
2, Message communication end
vim conf/activemq.xml
stay broker In the label systemUsage Add outside label
<plugins>
<simpleAuthenticationPlugin>
<users>
<authenticationUser username="${activemq.username}" password="${activemq.password}" groups="users,admins"/>
</users>
</simpleAuthenticationPlugin>
</plugins>
that The problem is coming. username and password Which configuration ?
conf Under the credentials.properties File configuration
example :
边栏推荐
- Implementing Yang Hui triangle with cyclic queue C language
- Kotlin变量
- Distributed solution - distributed lock solution - redis based distributed lock implementation
- MySQL index (1)
- ZABBIX monitors mongodb templates and configuration operations
- Redis's memory elimination mechanism, read this article is enough.
- Semantic segmentation experiment: UNET network /msrc2 dataset
- A guide to threaded and asynchronous UI development in the "quick start fluent Development Series tutorials"
- 一款新型的智能家居WiFi选择方案——SimpleWiFi在无线智能家居中的应用
- POJ-2499 Binary Tree
猜你喜欢
Matlab boundarymask function (find the boundary of the divided area)
Storage Basics
Why do you always fail in automated tests?
Constructing expression binary tree with prefix expression
A guide to threaded and asynchronous UI development in the "quick start fluent Development Series tutorials"
- [email protected] (using password"/>
Solve the error 1045 of Navicat creating local connection -access denied for user [email protected] (using password
Matlab superpixels function (2D super pixel over segmentation of image)
Preliminary exploration of basic knowledge of MySQL
Master-slave mode of redis cluster
JDBC exercise - query data encapsulated into object return & simple login demo
随机推荐
II. Data type
Conversion du format de données GPS [facile à comprendre]
What is digital existence? Digital transformation starts with digital existence
GPS數據格式轉換[通俗易懂]
Common commands and basic operations of Apache Phoenix
Basic operations of MySQL data table, addition, deletion and modification & DML
Just a coincidence? The mysterious technology of apple ios16 is actually the same as that of Chinese enterprises five years ago!
GPS数据格式转换[通俗易懂]
PIP command reports an error pip is configured with locations that requires tls/ssl problems
POJ-2499 Binary Tree
Kotlin变量
Principle of universal gbase high availability synchronization tool in Nanjing University
Redis highly available sentinel cluster
ZABBIX monitors mongodb (template and deployment operations)
Pytorch two-layer loop to realize the segmentation of large pictures
Constructing expression binary tree with prefix expression
C language structure is initialized as a function parameter
struct MySQL
Learn the memory management of JVM 02 - memory allocation of JVM
7月华清学习-1