在Ubunto上安装后,Mongo出现了问题。 当我运行命令时
sudo systemctl status mongodb
结果是
mongodb.service - An object/document-oriented database
Loaded: loaded (/lib/systemd/system/mongodb.service; enabled; vendor preset: enabled)
Active: failed (Result: core-dump) since Fri 2018-09-21 15:32:19 +07; 49min ago
Docs: man:mongod(1)
Process: 5668 ExecStart=/usr/bin/mongod --unixSocketPrefix=${SOCKETPATH} --config ${CONF} $DAEMON_OPTS (code=dumped, signal=ABRT)
Main PID: 5668 (code=dumped, signal=ABRT)
Thg 9 21 15:32:16 saymyname systemd[1]: Started An object/document-oriented database.
Thg 9 21 15:32:19 saymyname systemd[1]: mongodb.service: Main process exited, code=dumped, status=6/ABRT
Thg 9 21 15:32:19 saymyname systemd[1]: mongodb.service: Failed with result 'core-dump'.
请帮助我解决此问题!
答案 0 :(得分:0)
我遇到了同样的错误,可能是因为 ubuntu 从 18.04 升级到 20.04。尝试了很多东西,最后重新安装 mongodb 工作。这是一个新安装,所以不关心备份。
$ sudo apt remove mongodb mongo-tools mongodb-clients mongodb-server mongodb-server-core
$ sudo apt autoremove
$ sudo rm -rf /var/lib/mongodb/
$ sudo apt install mongodb