我正在尝试启动新安装的mongodb
(数据包管理系统=5.0.2管理系统数据库=5.0.2管理系统服务器=5.0.2管理系统 shell =5.0.2管理系统工具=5.0.2)
- 操作系统ubuntu20.04(清除,全新安装)
- VMware exsi
- 配置默认值
安装后,我试图启动服务,并得到这样的错误:
sudo systemctl状态监视服务
● mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: enabled)
Active: failed (Result: core-dump) since Mon 2021-11-22 13:02:15 UTC; 1s ago
Docs: https://docs.mongodb.org/manual
Process: 1769 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=dumped, signal=ILL)
Main PID: 1769 (code=dumped, signal=ILL)
Nov 22 13:02:14 rocket systemd[1]: Started MongoDB Database Server.
Nov 22 13:02:15 rocket systemd[1]: mongod.service: Main process exited, code=dumped, status=4/ILL
Nov 22 13:02:15 rocket systemd[1]: mongod.service: Failed with result 'core-dump'.
日志-xe:
-- A start job for unit mongod.service has finished successfully.
--
-- The job identifier is 456.
Nov 22 12:59:33 rocket sudo[1687]: pam_unix(sudo:session): session closed for user root
Nov 22 12:59:33 rocket kernel: show_signal: 18 callbacks suppressed
Nov 22 12:59:33 rocket kernel: traps: mongod[1693] trap invalid opcode ip:562c4fb0708a sp:7ffe3d3abcb0 error:0 in mongod[562c4bbc8000+5055000]
Nov 22 12:59:34 rocket systemd[1]: mongod.service: Main process exited, code=dumped, status=4/ILL
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- An ExecStart= process belonging to unit mongod.service has exited.
--
-- The process' exit code is 'dumped' and its exit status is 4.
Nov 22 12:59:34 rocket systemd[1]: mongod.service: Failed with result 'core-dump'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit mongod.service has entered the 'failed' state with result 'core-dump'.
火箭内核:陷阱:监视器[1693]陷阱操作码无效IP:562 c4 fb 0708 a sp:7 ffe 3d 3abcb 0错误:监视器中存在0 [562 c4 bbc 8000 +5055000]
限值:
ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 47570
max locked memory (kbytes, -l) 65536
max memory size (kbytes, -m) unlimited
open files (-n) 65000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 47570
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
2条答案
按热度按时间mwngjboj1#
a.问题看起来是缺少依赖项的问题。运行:
apt-get -u dist-upgrade
然后重新安装mongodb
B.不要使用5.0.2 -MongoDB对该版本发出了严重警告。
使用5.0.3代替
daolsyd02#
看起来Mongo对底层芯片组(AVX)上的扩展很敏感。如果你在KVM下运行这个,你必须实验底层的CPU架构。我在Mongo 6. 0. 4上也遇到过同样的问题。
我在一个旧的Xeon芯片上运行KVM,所以我没有模拟QEMU,而是将执行传递给底层处理器。
https://www.mongodb.com/community/forums/t/mongodb-5-0-cpu-intel-g4650-compatibility/116610