zoukankan      html  css  js  c++  java
  • rabbitmq&&erlang 安装

    # yum install epel-release

    CentOS and Red Hat Enterprise Linux 6.x

    wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
    sudo rpm -Uvh epel-release-6*.rpm
    CentOS and Red Hat Enterprise Linux 7.x

    wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    sudo rpm -Uvh epel-release-latest-7*.rpm

    # rabbitmq

    # ubuntu & debian
    # apt-get install rabbitmq-server

    # ## install erlang
    # centos
    # 1. Alternatively: adding the repository entry manually
    # RPM packages are signed. To add Erlang Solutions key, execute command:
    rpm --import http://packages.erlang-solutions.com/rpm/erlang_solutions.asc
    # Add the following lines to some file in /etc/yum.repos.d/:
    [erlang-solutions]
    name=Centos $releasever - $basearch - Erlang Solutions
    baseurl=http://packages.erlang-solutions.com/rpm/centos/$releasever/$basearch
    gpgcheck=1
    gpgkey=http://packages.erlang-solutions.com/rpm/erlang_solutions.asc
    enabled=1

    # 2. Installing Erlang
    # Call the following command to install the erlang package:
    sudo yum install erlang
    # or this command to install the esl-erlang package:
    sudo yum install esl-erlang

    # ## install rabbitmq
    # Using PackageCloud RPM Repository : https://packagecloud.io/rabbitmq/rabbitmq-server/install
    curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash

    # or installed by rpm
    rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
    # wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.2/rabbitmq-server-3.6.2-1.noarch.rpm
    yum install rabbitmq-server-3.6.2-1.noarch.rpm

    # start rabbitmq
    service rabbitmq-server start

    # configure
    rabbitmqctl add_user myuser mypsw # can't contains '*' (bidong, portal_bidong)
    rabbitmqctl add_vhost myvhost # portal
    rabbitmqctl set_user_tags myuser mytags # portal
    rabbitmqctl set_permissions -p myvhost myuser ".*" ".*" ".*"
    rabbitmqctl delete_user guest # for security, delete guest account
    rabbitmqctl list_permissions [-p /] myuser

    # celery
    pip install celery

    # tornado-celery
    pip install tornado-celery

    # tips
    # if can't receive celery response, may be pika version proble. (tornado-celery: v0.3.5)
    pip2.7 install pika==0.9.14

  • 相关阅读:
    使用百度字体编辑器删除不必要字体,减少字体文件体积
    使用npm安装webpack失败时,可能被墙要为cmd命令行设置代理
    让字体图标代替雪碧图,减少请求带宽
    隐藏浏览器原生的滚动条
    台式机安装CentOS7.6 Minimal ISO系统并增加图形化桌面
    像我这样笨拙地生活(廖一梅)--节选
    随心随意亦舒经典语录
    file / from install of XXX conflicts with file from package filesystem-XXX
    nginx代理php项目的websocket
    Redis4配置文件详解
  • 原文地址:https://www.cnblogs.com/fatt/p/6649945.html
Copyright © 2011-2022 走看看