$ erl -version Erlang (SMP,ASYNC_THREADS) (BEAM) emulator version 10.6.4
安装 RabbitMQ
Erlang 安装完成之后,就可以安装 RabbitMQ 了
1
$ apt-get install rabbitmq-server
安装完成后可以通过 service 来查看 RabbitMQ 的服务运行状态。可以看到 RabbitMQ 已经运行起来了,绑定的端口是 5672。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
$ service rabbitmq-server status ● rabbitmq-server.service - RabbitMQ Messaging Server Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2022-11-02 19:36:49 CST; 2h 11min ago Main PID: 1231564 (beam.smp) Status: "Initialized" Tasks: 87 (limit: 4654) Memory: 84.9M CGroup: /system.slice/rabbitmq-server.service ├─1231547 /bin/sh /usr/sbin/rabbitmq-server ├─1231564 /usr/lib/erlang/erts-10.6.4/bin/beam.smp -W w -A 64 -MBas ageffcbf -MHas ageffcbf -MBlmbcs 512 -MHlmbcs 512 -MMmcs 30 -P 1048576 -t 5000000 -stbt db -zdbbl 128000 -K true -- -root /usr/lib/erlan> ├─1231832 erl_child_setup 65536 ├─1231857 inet_gethost 4 └─1231858 inet_gethost 4
Nov 02 19:36:44 vincent-ecs systemd[1]: Starting RabbitMQ Messaging Server... Nov 02 19:36:49 vincent-ecs systemd[1]: rabbitmq-server.service: Supervising process 1231564 which is not our child. We'll most likely not notice when it exits. Nov 02 19:36:49 vincent-ecs systemd[1]: Started RabbitMQ Messaging Server.