安装这个rabbitmq真心不容易,我是在虚拟机安装的,前前后后来来回回,共用了5个虚拟机。
现在记录下心得体会
首先需要看官方安装文档,根据要求选择合适的erlang、rabbitmq
https://www.rabbitmq.com/install-rpm.html
不同的centos版本,对应的安装文件也不一样。
https://www.rabbitmq.com/which-erlang.html
其次就是需要在/etc/hosts文件内天加一个到本机的映射。
127.0.0.1 localhost
再次就是需要开放某些端口,我为了省事,直接把防火墙关闭了。
- 4369 (epmd), 25672 (Erlang distribution)
- 5672, 5671 (AMQP 0-9-1 without and with TLS)
- 15672 (if management plugin is enabled)
- 61613, 61614 (if STOMP is enabled)
- 1883, 8883 (if MQTT is enabled)
参考:
https://www.rabbitmq.com/install-rpm.html
https://www.rabbitmq.com/which-erlang.html