gpt4 book ai didi

mongodb - Ubuntu 18.04 - mongodb 5.0 安装 - (代码=转储,信号=ILL)

转载 作者:行者123 更新时间:2023-12-04 18:24:53 30 4
gpt4 key购买 nike

我正在尝试使用这些官方 instructions 在 Ubuntu 18.04 上安装 MongoDB Community Edition 5.0 .然而,当我到达 sudo systemctl start mongod启动服务的步骤,它给了我以下错误 sudo systemctl status mongod

mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: enabled)
Active: failed (Result: core-dump) since Fri 2021-07-30 18:50:50 CDT; 5min ago
Docs: https://docs.mongodb.org/manual
Process: 125616 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=dumped, signal=ILL)
Main PID: 125616 (code=dumped, signal=ILL)

Jul 30 18:50:50 mongodocker.cigi.illinois.edu systemd[1]: Started MongoDB Database Server.
Jul 30 18:50:50 mongodocker.cigi.illinois.edu systemd[1]: mongod.service: Main process exited, code=dumped, status=4/ILL
Jul 30 18:50:50 mongodocker.cigi.illinois.edu systemd[1]: mongod.service: Failed with result 'core-dump'.
我试过卸载 mongodb sudo apt-get purge mongodb-* , 删除目录 /var/lib/mongodb & /var/log/mongodb并从头开始安装。
注意:我将使用 /etc/mongod.conf 中指定的默认配置 dmesg显示以下
traps: mongod[125616] trap invalid opcode ip:56330c9ed3da sp:7ffece242670 error:0 in mongod[563308adc000+5021000]

最佳答案

最新版本的 mongo 有问题,所以卸载它并尝试较低版本

sudo service mongod stop 

sudo apt purge mongo*

wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -

echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list

sudo apt-get update

sudo apt-get install -y mongodb-org=4.4.11 mongodb-org-server=4.4.11 mongodb-org-shell=4.4.11 mongodb-org-mongos=4.4.11 mongodb-org-tools=4.4.11

sudo systemctl start mongod

sudo systemctl status mongod
全部完成

关于mongodb - Ubuntu 18.04 - mongodb 5.0 安装 - (代码=转储,信号=ILL),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68598164/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com