This is the fifth day of my participation in the August More text Challenge. For details, see: August More Text Challenge
Related articles
RabbitMQ series: RabbitMQ series
preface
- The RabbitMQ series has officially been updated ~~~~
- Start with an appetizer, install tutorial!
- Many people say that Erlang is too slow to download and can get stuck. Here are the Erlang and RabbitMQ installation packages for Centos7.
- Erlang and RabbitMQ installation packages
- Extract code: 5sgj
- Don’t ask me why I don’t provide Windows installation tutorial, it is a random search, Linux under all kinds of holes, I will help you step, you follow me. The question is who installs this on Windows…
(1) Install dependencies
-
yum -y install gcc glibc-devel make ncurses-devel openssl-devel xmlto perl wget gtk2-devel binutils-devel Copy the code
-
If an error
- Run the following command
-
Rm -f /var/lib/rpm/__db* RPM --rebuilddbCopy the code
-
The installation is successful
② Download Erlang
-
Click to jump to the Erlang website
-
Run the following command
-
Wget HTTP: / / http://erlang.org/download/otp_src_22.0.tar.gzCopy the code
-
Wait at ease, it takes a long time
-
This is too slow, but it is not recommended to use this way, directly use the web disk download and upload to the server. Link above!
-
Download it directly from the download address above, and then use the rz command to upload it to the server
-
Execute after the download is complete
-
The RPM - the ivh Erlang 22.0.7-1. El7. X86_64. RPMCopy the code
- Erlang installed successfully!
Install RabbitMQ
-
Yum install -- y the rabbitmq server - 3.7.18-1. El7. Noarch. RPMCopy the code
-
Create a rabbitmq folder in /usr/local/
-
Copy the configuration file from the default path to the rabbitmq directory we created
-
Cp/usr/share/doc/the rabbitmq server - 3.7.18 / rabbitmq config. The example/usr/local/rabbitmqCopy the code
-
Modify the name
-
mv rabbitmq.config.example rabbitmq.config Copy the code
-
Modifying a Configuration File
-
vim rabbitmq.config Copy the code
- Save and exit.
-
-
4. Start plug-in management
-
rabbitmq-plugins enable rabbitmq_management Copy the code
-
-
Start, restart, or terminate services
-
Systemctl start rabbitmq-server # Start the rabbitmq service systemctl restart rabbitmq-server # Restart the rabbitmq-server service Stop the serviceCopy the code
-
-
Is the startup successful?
-
systemctl status rabbitmq-server Copy the code
- Active (running) indicates that the startup is successful!
-
-
Find a browser and type in your IP :15672
- Success!
-
This may be the case with your login
-
The solution
-
rabbitmqctl add_user admin 111111 rabbitmqctl set_permissions -p / admin ".*" ".*" ".*" rabbitmqctl set_user_tags admin administrator Copy the code
-
-
You do not need to restart. Use admin 111111 to log in again
-
Installation is complete!!
I see no ending, but I will search high and low
If you think I blogger writes good! Writing is not easy, please like, follow, comment to encourage the blogger ~hahah