RabbitMQ 安装教程(CentOS 7)
- 在/usr/local/下分别创建erlang和rabbitmq两个文件夹:
shell
cd /usr/local
mkdir erlang
mkdir rabbitmq
- 分别上传两个安装包并解压(注意版本)
- 必须先下载安装erlang语言环境:
shell
cd /usr/local/erlang
rpm -ivh erlang-21.3.6-1.el7.x86_64.rpm
- 然后下载rabbitmq:
shell
/usr/local/rabbitmq
yum -y install epel-release
sudo yum -y install logrotate
yum -y install socat
rpm -ivh rabbitmq-server-3.7.14-1.el7.noarch.rpm
- 手动创建配置文件:
shell
cd /etc/rabbitmq
vim /etc/rabbitmq/rabbitmq.config
- 在insert模式下粘贴:
text
[{rabbit, [{loopback_users, []}]}].
- 检查是否启动成功命令:
shell
systemctl start rabbitmq-server
- 检查RabbitMQ启动状态命令:
shell
systemctl status rabbitmq-server
- 在erlang或rabbitmq目录下执行安装rabbitmq管理页面命令:
shell
cd /usr/local/erlang
rabbitmq-plugins enable rabbitmq_management
- 可视化监控界面:
text
浏览器地址栏: http://192.168.25.201:15672
默认用户:
账号:guest
密码:guest
5672 通信端口
web管理端口15672