zoukankan      html  css  js  c++  java
  • RabbitMQ安装

    ubuntu1404 环境安装

    apt-get方式

    添加源

    sudo vim /etc/apt/sources.list

    deb http://www.rabbitmq.com/debian/ testing main  # testing 与main 前都有空格

    添加public key 

    wget http://www.rabbitmq.com/rabbitmq-signing-key-public.asc

    sudo apt-key add rabbitmq-signing-key-public.asc

    kamil@vm-ubuntu:~$ wget http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
    --2016-04-11 00:30:30--  http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
    Resolving www.rabbitmq.com (www.rabbitmq.com)... 192.240.153.117
    Connecting to www.rabbitmq.com (www.rabbitmq.com)|192.240.153.117|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1702 (1.7K) [text/plain]
    Saving to: ‘rabbitmq-signing-key-public.asc’
    
    100%[===================================================>] 1,702       --.-K/s   in 0.002s  
    
    2016-04-11 00:30:31 (1016 KB/s) - ‘rabbitmq-signing-key-public.asc’ saved [1702/1702]
    
    kamil@vm-ubuntu:~$ sudo apt-key add rabbitmq-signing-key-public.asc
    OK
    kamil@vm-ubuntu:~$ 

    安装

     sudo apt-get update ;sudo apt-get install rabbitmq-server

    .........
    Adding group `rabbitmq' (GID 133) ...
    Done.
    Adding system user `rabbitmq' (UID 125) ...
    Adding new user `rabbitmq' (UID 125) with group `rabbitmq' ...
    Not creating home directory `/var/lib/rabbitmq'.
     * Starting message broker rabbitmq-server                                                      [ OK ] 
    Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
    Processing triggers for ureadahead (0.100.0-16) ...

    启动;关闭;状态

    sudo rabbitmq-server start ;sudo rabbitmq-server stop ;sudo rabbitmqctl status

    python 连接rabbitmq 模块pika

    (Pika Python AMQP Client Library)

    sudo apt-get install python-pip git-core ; sudo pip install pika==0.10.0

    公众号请关注:侠之大者
  • 相关阅读:
    vue-cli+webpack打包,上线
    vue2.0搭建vue手脚架(vue-cli)
    vue -- vue-cli webpack项目打包后自动压缩成zip文件
    Java字符串和常用类
    Java基础
    TF-IDF与TextRank的关键词提取算法应用
    ACl2019|使用Graph-to-Sequence模型为中文文章生成连贯的评论
    ACL2019|巧用文本语境信息:基于上下文感知的向量优化
    探索四川奥秘
    手机浏览器通过Scheme跳转APP,兼容各种手机浏览器
  • 原文地址:https://www.cnblogs.com/kamil/p/5376700.html
Copyright © 2011-2022 走看看