如何启用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