怀念夏天 发表于 2025-1-9 16:48:01

RabbitMQ ubuntu 在线安装

1. ubuntu 20.04,换阿里源
cp /etc/apt/sources.list /etc/apt/sources-bk.list
vim /etc/apt/sources.list      
将下面内容放到文件最上面,会先用上面的源去更新文件。如许就不消删下面以前的旧源了。
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
 
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
 
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
生存后再运行下面的内容。
2.更新包列表
sudo apt update
3.安装RabbitMQ
sudo apt install rabbitmq-server
4.启动RabbitMQ服务
sudo systemctl start rabbitmq-server

5.检察RabbitMQ状态
sudo systemctl status rabbitmq-server
https://i-blog.csdnimg.cn/direct/6611d60237f045bf825e817d1601aaf8.png
6.(可选)启用RabbitMQ管理插件,以便可以或许通过Web界面管理RabbitMQ:
sudo rabbitmq-plugins enable rabbitmq_management
7.(可选)创建用户和设置权限(请更换your_username和your_password为你想要的用户名和密码):
sudo rabbitmqctl add_user your_username your_password
sudo rabbitmqctl set_user_tags your_username administrator
sudo rabbitmqctl set_permissions -p / your_username ".*" ".*" ".*"

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: RabbitMQ ubuntu 在线安装