我按照以下说明安装了mongodb:
https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/#install-mongodb-community-edition
当我执行命令时:
sudo systemctl start mongod
显然工作正常,但当我执行此命令时:
sudo systemctl status mongod
我有这个错误:
● mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled)
Active: failed (Result: core-dump) since Mon 2023-01-02 15:14:01 -05; 1s ago
Docs: https://docs.mongodb.org/manual
Process: 2339 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=dumped, signal=ILL)
Main PID: 2339 (code=dumped, signal=ILL)
ene 02 15:14:01 luis-VirtualBox systemd[1]: Started MongoDB Database Server.
ene 02 15:14:01 luis-VirtualBox systemd[1]: mongod.service: Main process exited, code=dumped, status=4/ILL
ene 02 15:14:01 luis-VirtualBox systemd[1]: mongod.service: Failed with result 'core-dump'.
我已经尝试卸载和重新安装,但我仍然得到同样的错误https://stackoverflow.com/a/74258980/15311842,你知道这是什么吗?
1条答案
按热度按时间v1l68za41#
status=4/ILL
表示进程因试图执行非法指令而死亡。请参阅https://support.sas.com/documentation/onlinedoc/ccompiler/doc700/html/lr1/z2005346.htm现代的MongoDB版本要求Advanced Vector Extensions(AVX)指令可用。(参见提供这些指令的处理器列表的链接)
常见原因是计算机未使用提供AVX的处理器,但如果Hyper-v正在运行,则在Windows上运行的VM中也可能发生这种情况。