emqx启动无反应

版本:emqx-5.3.2-el7-amd64.tar.gz
操作系统:centos7虚拟机

1.执行start,输出几行warning后,就一直无反应,求助如何启动成功
[mallapp@ds emqx]$ ./bin/emqx start
WARNING: Using libs from ‘/opt/emqx/dynlibs’ due to missing from the OS.
WARNING: Default (insecure) Erlang cookie is in use.
WARNING: Configure node.cookie in /opt/emqx/etc/emqx.conf or override from environment variable EMQX_NODE__COOKIE
WARNING: NOTE: Use the same cookie for all nodes in the cluster.

2.执行console,提示需要rm权限,必须使用rm或者root启动么?
[mallapp@ds emqx]$ ./bin/emqx console
WARNING: Using libs from ‘/opt/emqx/dynlibs’ due to missing from the OS.
WARNING: Default (insecure) Erlang cookie is in use.
WARNING: Configure node.cookie in /opt/emqx/etc/emqx.conf or override from environment variable EMQX_NODE__COOKIE
WARNING: NOTE: Use the same cookie for all nodes in the cluster.
./bin/emqx: line 756: /usr/bin/rm: Permission denied

  1. 日志
    run_erl.log:
    run_erl [2182] Wed Dec 6 17:48:19 2023
    Args before exec of shell:
    run_erl [2182] Wed Dec 6 17:48:19 2023
    argv[0] = sh
    run_erl [2182] Wed Dec 6 17:48:19 2023
    argv[1] = -c
    run_erl [2182] Wed Dec 6 17:48:19 2023
    argv[2] = exec “/opt/emqx/bin/emqx” “console”
    erlang.log.1
    ===== LOGGING STARTED Wed Dec 6 17:48:19 CST 2023
    =====
    /opt/emqx/bin/emqx: line 756: /usr/bin/rm: Permission denied

看起来是之前在这机器上使用 root 权限装过旧版本,先尝试清理干净旧的数据,然后再试一试。

bin/emqx 这个启动文件的756行需要rm。。。注释掉就能启动了

应该只需要删除这个目录

嗯嗯,我后面发现是启动脚本的756行需要rm,但是我的机器禁了rm命令,所以启动的时候卡在那了