RabbitMQ simple installation

In the actual development process, in order to solve the problem of concurrent large, we tend to introduce this killer messaging middleware, today we first entry with a RabbitMQ messaging middleware, we will share the RabbitMQ installation and use.

1. RabbitMQ installation

Here we only introduce the following Linux installation, following other similar platforms, prior to installation, we first use the following command yum update command

yum update

After the update finished, you need to install erlang, because RabbitMQ server is to use erlang language, the language of concurrent processing capability particularly strong, a lot of the game's servers are using it to write, are interested can look for information on learning .

yum install epel-release

  

yum install erlang

After installing the above dependence into today's topic, use the following command to install RabbitMQ, as follows:

yum install rabbitmq-server

After completion of the implementation of the above command, a simple RabbitMQ service has been the installation is complete, the next, we start the service.

2. Start RabbitMQ

After installation is complete, go to the following path, as shown:

We can see that there are several commands in the current directory, not being here these few commands to explain, in a special chapter behind us to do a summary of the basics. We execute the following command to enable console access, as follows:

./rabbitmq-plugins enable rabbitmq_management

After completion of the implementation of the above command, execute the following command to start the service, as follows:

./rabbitmq-server -detached

Then use the following command to see the success of start, as follows:

ps aux | grep rabbit

Look mq default port monitor is not started, as follows:

 

netstat -nap | grep 5672

 

We can see rabbitmq successful start, if you are a cloud server, also need to open ports in the security group 5672,15672 inside, and finally we access management platform <address: http: // ip address: 15672>, as shown below:

 

 

RabbitMQ default user name and password are guest, after input into the console, as shown below:

至此,我们就成功安装了rabbitmq,开始本来打算后面使用springboot集成rabbitmq做几个小demo,写到这里感觉如果继续写下去篇幅有点长,看的人容易犯困,所以rabbitmq的小demo后面再写一个博文做分享。

Guess you like

Origin www.cnblogs.com/winqi/p/rabbitmq.html