Mongod 未启动(mongod.service:失败,结果为 'signal')

Mongod does not start (mongod.service: Failed with result 'signal')

命令后sudo service mongod start && sudo service mongod status

● mongod.service - MongoDB Database Server
   Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: enabled)
   Active: failed (Result: signal) since Wed 2021-08-18 11:58:29 MSK; 4s ago
     Docs: https://docs.mongodb.org/manual
  Process: 13899 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=killed, signal=ILL)
 Main PID: 13899 (code=killed, signal=ILL)

авг 18 11:58:29 400sk systemd[1]: Started MongoDB Database Server.
авг 18 11:58:29 400sk systemd[1]: mongod.service: Main process exited, code=killed, status=4/ILL
авг 18 11:58:29 400sk systemd[1]: mongod.service: Failed with result 'signal'.

是否不在/var/logs

中写入日志

Debian 10,尝试 MongoDB 4.2 和 5.0,Intel(R) Xeon(R) E5540 @ 2.53GHz

从官方网站安装 (https://docs.mongodb.com/manual/tutorial/install-mongodb-on-debian/)

信号“ILL”是非法指令。

MongoDB5.0 需要高级矢量扩展,Xeon E5540 没有。

有关支持 AVX 的处理器列表,请参阅 https://en.wikipedia.org/wiki/Advanced_Vector_Extensions#CPUs_with_AVX

确保 libmkl-devlib-avx2 已安装并且可以在您的 OS 上使用。在 Debian 10 上,这些包位于 Nonfree amd64 存储库中。将回购添加到您的 /etc/apt/sources.list 启用回购然后执行 apt-get 更新,然后:

apt-get install libmkl-dev libmkl-avx2 mongodb-org