当前位置:网站首页>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 :
边栏推荐
- Swift - enables textview to be highly adaptive
- Get all stock data of big a
- Reinforcement learning - learning notes 3 | strategic learning
- Understand redis persistence mechanism in one article
- JDBC exercise - query data encapsulated into object return & simple login demo
- MySQL transaction
- Basic operations of MySQL data table, addition, deletion and modification & DML
- POJ-2499 Binary Tree
- Tabbar configuration at the bottom of wechat applet
- Matlab boundarymask function (find the boundary of the divided area)
猜你喜欢
UNIX socket advanced learning diary - advanced i/o functions
MySQL splits strings for conditional queries
Why do you always fail in automated tests?
Matlab superpixels function (2D super pixel over segmentation of image)
Migrate data from Mysql to neo4j database
Storage Basics
Redis highly available sentinel mechanism
Get data from the database when using JMeter for database assertion
Learn memory management of JVM 01 - first memory
Summary of C language learning problems (VS)
随机推荐
Automated test lifecycle
Matlab label2idx function (convert the label matrix into a cell array with linear index)
Matlab struct function (structure array)
Introduction to GNN
MySQL function
A guide to threaded and asynchronous UI development in the "quick start fluent Development Series tutorials"
Interviewer: is acid fully guaranteed for redis transactions?
ZABBIX monitors mongodb templates and configuration operations
Resnet18 actual battle Baoke dream spirit
Conversion du format de données GPS [facile à comprendre]
Course design of compilation principle --- formula calculator (a simple calculator with interface developed based on QT)
Hexadecimal conversion summary
GPON technical standard analysis I
POJ-2499 Binary Tree
End to end neural network
Experimental design - using stack to realize calculator
Learning JVM garbage collection 06 - memory set and card table (hotspot)
Kotlin流程控制、循环
Master-slave mode of redis cluster
MySQL basic operation -dql