当前位置:网站首页>1.0-mq getting started and using
1.0-mq getting started and using
2022-06-25 20:47:00 【Nishino_ shou】
1. At present, I have been exposed to kafka、ActiveMQ、RabbitMQ、RocketMQ Wait for message middleware .
among RabbitMQ By erlang To write , The rest is by java To write (kafka Contains other languages ).
MQ The main function of Peak shaving 、 asynchronous 、 decoupling , Its specific introduction is Baidu , There are many tutorials outside , This section focuses on actual combat .
This study focuses on ActiveMQ For example :
Download address :http://activemq.apache.org/

Downloaded from the official website apache-activemq-5.16.0-bin.tar.gz, Upload to the server ( I didn't buy a server , It is directly loaded in the virtual machine centOS7).
Normally place directory /opt Next .
2. Download and install
tar -zxvf apache-activemq-5.16.0-bin.tar.gz

Create a new directory under the root directory activeMQ, take apache-activemq-5.16.0 Copy the contents and contents ( It is better to delete the source file , After all, there will be more and more files accumulated over time , Clear as soon as you know you can ).

3. start-up MQ
3.1 Normal startup : find mq Next bin Catalog

Start command :./activemq start
The default process port is 61616

As shown in the above figure, the startup is successful !
The following is to view the startup occupancy service :

You can see 4092 The process is activeMQ(grep -v grep For masking lookups grep Self information ).
Check the port :netstat -anp|grep 61616
notes :lsof -i:61616 You can directly view the port to determine whether it is started MQ
4. close MQ
Stop command :./activemq stop
5. With log MQ Processing mode
The print log is appended to the file at startup : ./activemq start > /activeMQ/myrunmq.log


The above is the basic installation and use process ~
边栏推荐
- Tencent music knowledge map search practice
- Record some questions about MySQL (DNS reverse resolution in Linux)
- [machine learning] machine learning from zero to mastery -- teaching you how to use decision tree to predict contact lens types
- Online yaml to XML tool
- Redis common principles interview
- Skills of CCF question 2
- Great changes in the interaction between people and the digital world
- Measurement index SSMI
- A simple file searcher
- Splunk series: Splunk installation and deployment (I)
猜你喜欢
2022 "gold, silver and four" is a must for job hopping. You must know 100 questions in 2022 intermediate and advanced Android interview to realize your big factory dream

TypeError: __ init__ () takes 1 positional argument but 5 were given

Splunk series: Splunk data import (II)

Barrier of cursor application scenario
Paddledtx v1.0 has been released, and its security and flexibility have been comprehensively improved!

Sonar series: continuous scanning through Jenkins integrated sonarqube (IV)
Feature Engineering in simple terms – a practice guide based on openmldb (Part 1)
Literals and type conversions of basic data types
Live broadcast preview | front line experts invite you to talk: the value of data science enabling multiple application scenarios

SQL statement select summary
随机推荐
Corporate finance formula_ P1_ Accounting statement and cash flow
How does jest expose specific problems in complex judgment conditions?
What is the core journal of Peking University? An article will help you understand it thoroughly
ZK implementation of distributed global counter for cursor application scenario analysis
The last core step of configuring theano GPU
Interview records
What are cookies in Web site development?
Interview shock: talk about thread life cycle and transformation process?
Lesson 4 beautifulsoup
Teach you how to create and publish a packaged NPM component
Decipher the AI black technology behind sports: figure skating action recognition, multi-mode video classification and wonderful clip editing
"Space guard soldier" based on propeller -- geosynchronous geostationary orbit space target detection system
Lantern Festival, learning at the right time! Novice training camp attacks again, learning buff continues to fill up
Patrol script
Reasons for network timeout app flash back
Leetcode theme [array] -31- next spread
Modifying routes without refreshing the interface
Cloud native 04: use envoy + open policy agent as the pre agent
What is an app circle of friends advertisement
Splunk series: Splunk data import (II)