华为欧拉OpenEuler(Linux)安装RabbitMQ
在OpenEuler(Linux)上安装RabbitMQ的步骤如下:
- 更新软件包索引:
sudo yum makecache
- 安装必要的依赖:
sudo yum install -y epel-release
- 安装RabbitMQ:
sudo yum install -y rabbitmq-server
- 启动RabbitMQ服务:
sudo systemctl start rabbitmq-server
- 设置RabbitMQ服务开机自启:
sudo systemctl enable rabbitmq-server
- 添加RabbitMQ用户并设置密码(可选):
sudo rabbitmqctl add_user admin StrongPassword
sudo rabbitmqctl set_user_tags admin administrator
sudo rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
sudo rabbitmqctl set_user_tags admin administrator
- 检查RabbitMQ状态:
sudo systemctl status rabbitmq-server
- 开启RabbitMQ管理界面(可选):
sudo rabbitmq-plugins enable rabbitmq_management
现在,你应该已经在OpenEuler(Linux)上成功安装并启动了RabbitMQ服务。你可以通过访问 http://<hostname>:15672/
并使用你之前创建的admin用户登录RabbitMQ管理界面。
评论已关闭