centos7安装rabbitmq-3.9.5单机部署
资源下载地址:
# erlang下载 https://github.com/rabbitmq/erlang-rpm/releases/tag/v23.3.4.6 # rabbitmq-server下载 https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.9.5
安装:
# rpm -ivh erlang-23.3.4.6-1.el7.x86_64.rpm # rpm -ivh rabbitmq-server-3.9.5-1.el7.noarch.rpm
启动服务:
# systemctl start rabbitmq-server # systemctl enable rabbitmq-server # systemctl status rabbitmq-server
查看插件列表:
rabbitmq-plugins list
#开启rabbitmq web界面
rabbitmq-plugins enable rabbitmq_management
添加账号信息:
添加远端登录账户 # rabbitmqctl add_user admin admin@devrabbitmq 将admin 设置为管理员权限 # rabbitmqctl set_user_tags admin administrator 将admin 设置为远端登录 # rabbitmqctl set_permissions -p / admin ".*" ".*" ".*" 浏览器测试访问 http://ip:15672
可见已默认带用户“guest”,密码默认guest,hosts项为/可远程登陆,但基于安全策略,登录报**“User can only log in via localhost”****,是不建议使用该账户,新建其他账户使用吧**
参考文档:
https://blog.csdn.net/m0_67394360/article/details/123867800