安装
yum install erlang
rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
yum install rabbitmq-server
添加hostname
vim /etc/hosts
# 添加一行:
127.0.0.1 rabbitmq-server
常用命令
# 启动:
service rabbitmq-server start
# 停止:
service rabbitmq-server stop
# 重启:
service rabbitmq-server restart
# 设置开机启动:
chkconfig rabbitmq-server on
管理后台
# 开启 Web 界面管理:
rabbitmq-plugins enable rabbitmq_management
http://rabbitmq-server:15672
broker地址
broker_url = amqp://guest:guest@localhost:5672/vhost
python连接出错
Received and deleted unknown message. Wrong destination?!?
pip uninstall librabbitmq