SimpleDao
rabbitmq 安装 install
2019-05-06, 访问数: 1525

安装

  1. yum install erlang
  2. rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
  3. yum install rabbitmq-server

添加hostname

  1. vim /etc/hosts
  2. # 添加一行:
  3. 127.0.0.1 rabbitmq-server

常用命令

  1. # 启动:
  2. service rabbitmq-server start
  3. # 停止:
  4. service rabbitmq-server stop
  5. # 重启:
  6. service rabbitmq-server restart
  7. # 设置开机启动:
  8. chkconfig rabbitmq-server on

管理后台

  1. # 开启 Web 界面管理:
  2. rabbitmq-plugins enable rabbitmq_management
  3. http://rabbitmq-server:15672

broker地址

  1. broker_url = amqp://guest:guest@localhost:5672/vhost

python连接出错

Received and deleted unknown message. Wrong destination?!?

  1. pip uninstall librabbitmq