当前位置:网站首页>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 :
边栏推荐
- Get the variable address of structure member in C language
- Learn JVM garbage collection 05 - root node enumeration, security points, and security zones (hotspot)
- PIP command reports an error pip is configured with locations that requires tls/ssl problems
- Master the new features of fluent 2.10
- July Huaqing learning-1
- Programming skills for optimizing program performance
- Conversion du format de données GPS [facile à comprendre]
- Why learn harmonyos and how to get started quickly?
- The relationship between the size change of characteristic graph and various parameters before and after DL convolution operation
- NPM install reports an error
猜你喜欢

Simple production of wechat applet cloud development authorization login

Knowledge representation (KR)

ZABBIX customized monitoring disk IO performance

Redis highly available sentinel cluster

Matlab superpixels function (2D super pixel over segmentation of image)
Automated test lifecycle

Learn the memory management of JVM 02 - memory allocation of JVM

前几年外包干了四年,秋招感觉人生就这样了..

Keras implements verification code identification

Matlab boundarymask function (find the boundary of the divided area)
随机推荐
Average lookup length when hash table lookup fails
Pytoch monolayer bidirectional_ LSTM implements MNIST and fashionmnist data classification
Preliminary exploration of basic knowledge of MySQL
Learn JVM garbage collection 05 - root node enumeration, security points, and security zones (hotspot)
JDBC -- use JDBC connection to operate MySQL database
Swift - enables textview to be highly adaptive
ZABBIX monitors mongodb (template and deployment operations)
Get the variable address of structure member in C language
Redis's memory elimination mechanism, read this article is enough.
Take you hand in hand to develop a service monitoring component
Understand kotlin from the perspective of an architect
Pytorch two-layer loop to realize the segmentation of large pictures
Learning items
MySQL basic operation -dql
JDBC exercise - query data encapsulated into object return & simple login demo
Matlab superpixels function (2D super pixel over segmentation of image)
Differences between IPv6 and IPv4 three departments including the office of network information technology promote IPv6 scale deployment
Distributed solution - completely solve website cross domain requests
How can beginners learn flutter efficiently?
Image hyperspectral experiment: srcnn/fsrcnn