1. 程式人生 > >erlang和rabbitmq安裝(0)

erlang和rabbitmq安裝(0)

訪問權限 lang ini use 創建 server star tac man

1. erlang下載地址(之前官網下載的有問題):

https://bintray.com/rabbitmq/rpm/erlang/20.3.8.9-1

2. 安裝erlang & rabbitmq:

rpm -ivh erlang-20.3.8.9-1.el6.x86_64.rpm
rpm -ivh rabbitmq-server-3.7.8-1.el6.noarch.rpm

3. 啟動

1): rabbitmq前臺啟動

rabbitmq-server start
2): rabbitmq後臺啟動
rabbitmq-server -detached

4. 查看所有插件列表:

rabbitmq-plugins list -v

4.1 啟動插件:

rabbitmq-plugins enable rabbitmq_management

5. 創建用戶:

rabbitmqctl add_user nie 1234

6. 設置角色:

rabbitmqctl set_user_tags nie administrator

7. 設置默認vhost("/")訪問權限

rabbitmqctl set_permissions -p "/" nie "." "." ".*"

erlang和rabbitmq安裝(0)