emqx可以一台服务器部署多个服务吗?

环境

  • EMQX 版本:emqx-4.4.14-otp24.3.4.2-1-el7-amd64
  • 操作系统版本:centos 7 X64

重现此问题的步骤

  1. 在一台服务器上部署2个emqx
    第一个可以正常启动,第2个启动报错(第二个已经修改了端口18083-1883等)
    [root@localhost bin]# ./emqx start
    Erlang/OTP 24 [erts-12.3.2.2] [emqx] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:1]

There seem to be missing dynamic libs from the OS.
Using libs from /emqx/emqx2/dynlibs instead.
NOTE: EMQX’s rpm or deb package installation is recommended!
!!!
WARNING: Default (insecure) Erlang cookie is in use.
Please set node.cookie in /emqx/emqx2/etc/emqx.conf or override from environment variable EMQX_NODE_COOKIE
NOTE: Use the same config value for all nodes in the cluster.
!!!
EMQ X Broker 4.4.14 failed to start within 150 seconds,
see the output of ‘./emqx console’ for more information.
If you want to wait longer, set the environment variable
WAIT_FOR_ERLANG to the number of seconds to wait.

预期行为

实际行为

是可以的,但是有许多的监听端口需要修改的。如果在确实需要这样建议在容器环境里面进行,更方便管理一些