0

如何启用rabbitmq插件?我使用 asdf 来管理版本。但是rabbitmq-plugins看不到erlang版本

sudo su
asdf current erlang && rabbitmq-plugins enable rabbitmq_management
21.2.4  (set by /home/mvalitov/.tool-versions)
No version set for erlang; please run `asdf <global | local> erlang <version>`

升级版:

 mvalitov@mvalitov-pc  ~  asdf global erlang 21.2.4  
 mvalitov@mvalitov-pc  ~  sudo rabbitmq-plugins enable rabbitmq_management
No version set for erlang; please run `asdf <global | local> erlang <version>`
 mvalitov@mvalitov-pc  ~  sudo asdf global erlang 21.2.4                  
 mvalitov@mvalitov-pc  ~  sudo rabbitmq-plugins enable rabbitmq_management
No version set for erlang; please run `asdf <global | local> erlang <version>`
 mvalitov@mvalitov-pc  ~  asdf current erlang
21.2.4  (set by /home/mvalitov/.tool-versions)
 mvalitov@mvalitov-pc  ~  sudo asdf current erlang
21.2.4  (set by /home/mvalitov/.tool-versions)
 mvalitov@mvalitov-pc  ~  erl
Erlang/OTP 21 [erts-10.2.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]

Eshell V10.2.3  (abort with ^G)
1> 
User switch command
 --> 
BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
       (v)ersion (k)ill (D)b-tables (d)istribution
a
 mvalitov@mvalitov-pc  ~  sudo erl
Erlang/OTP 21 [erts-10.2.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]

Eshell V10.2.3  (abort with ^G)
1> 
BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
       (v)ersion (k)ill (D)b-tables (d)istribution

asdf v0.5.1

Linux my-pc 4.20.17-1-MANJARO #1 SMP PREEMPT Tue Mar 19 18:07:36 UTC 2019 x86_64 GNU/Linux

4

1 回答 1

0

自 version 以来已发布的版本中有许多错误修复0.5.1。请升级到 asdf0.7.4并重新生成垫片:

asdf reshim
于 2019-10-30T14:07:44.040 回答