linux命令部署rabbitmq
时间: 2023-10-08 22:05:46 浏览: 100
linux配置rabbitmq
好的,以下是在Linux系统上部署RabbitMQ的命令:
1. 安装Erlang:sudo apt-get install erlang-nox
2. 添加RabbitMQ的APT仓库源:echo "deb http://www.rabbitmq.com/debian/ testing main" | sudo tee /etc/apt/sources.list.d/rabbitmq.list
3. 导入RabbitMQ的公钥:wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
4. 更新仓库并安装RabbitMQ:sudo apt-get update && sudo apt-get install rabbitmq-server
5. 启动RabbitMQ服务:sudo service rabbitmq-server start
6. 确认RabbitMQ服务已经启动:sudo rabbitmqctl status
阅读全文