Mongod错误(与自制软件一起安装)

编程入门 行业动态 更新时间:2024-10-28 06:24:30
本文介绍了Mongod错误(与自制软件一起安装)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经用以下命令安装了mongodb

I have installed mongodb with

brew install mongodb

创建的文件夹

mkdir -p /data/db

处理权限

sudo chown -R `id -un` /data/db

运行

mongod

错误日志

2018-01-06T14:28:51.450+0100 I CONTROL [initandlisten] MongoDB starting : pid=6120 port=27017 dbpath=/data/db 64-bit host=Zigas-MBP-2 2018-01-06T14:28:51.451+0100 I CONTROL [initandlisten] db version v3.6.1 2018-01-06T14:28:51.451+0100 I CONTROL [initandlisten] git version: 025d4f4fe61efd1fb6f0005be20cb45a004093d1 2018-01-06T14:28:51.451+0100 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2n 7 Dec 2017 2018-01-06T14:28:51.451+0100 I CONTROL [initandlisten] allocator: system 2018-01-06T14:28:51.451+0100 I CONTROL [initandlisten] modules: none 2018-01-06T14:28:51.451+0100 I CONTROL [initandlisten] build environment: 2018-01-06T14:28:51.451+0100 I CONTROL [initandlisten] distarch: x86_64 2018-01-06T14:28:51.451+0100 I CONTROL [initandlisten] target_arch: x86_64 2018-01-06T14:28:51.451+0100 I CONTROL [initandlisten] options: {} 2018-01-06T14:28:51.452+0100 I - [initandlisten] Detected data files in /data/db created by the 'mmapv1' storage engine, so setting the active storage engine to 'mmapv1'. 2018-01-06T14:28:51.470+0100 I JOURNAL [initandlisten] journal dir=/data/db/journal 2018-01-06T14:28:51.471+0100 I JOURNAL [initandlisten] recover : no journal files present, no recovery needed 2018-01-06T14:28:51.494+0100 I JOURNAL [durability] Durability thread started 2018-01-06T14:28:51.494+0100 I JOURNAL [journal writer] Journal writer thread started 2018-01-06T14:28:51.495+0100 I CONTROL [initandlisten] 2018-01-06T14:28:51.495+0100 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database. 2018-01-06T14:28:51.495+0100 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted. 2018-01-06T14:28:51.495+0100 I CONTROL [initandlisten] 2018-01-06T14:28:51.495+0100 I CONTROL [initandlisten] ** WARNING: This server is bound to localhost. 2018-01-06T14:28:51.495+0100 I CONTROL [initandlisten] ** Remote systems will be unable toconnect to this server. 2018-01-06T14:28:51.495+0100 I CONTROL [initandlisten] ** Start the server with --bind_ip <address> to specify which IP 2018-01-06T14:28:51.495+0100 I CONTROL [initandlisten] ** addresses it should serve responses from, or with --bind_ip_all to 2018-01-06T14:28:51.495+0100 I CONTROL [initandlisten] ** bind to all interfaces. If this behavior is desired, start the 2018-01-06T14:28:51.495+0100 I CONTROL [initandlisten] ** server with --bind_ip 127.0.0.1 to disable this warning. 2018-01-06T14:28:51.495+0100 I CONTROL [initandlisten] 2018-01-06T14:28:51.762+0100 F CONTROL [initandlisten] ** IMPORTANT: UPGRADE PROBLEM: The data files need to be fully upgraded to version 3.4 before attempting an upgrade to 3.6; see dochub.mongodb/core/3.6-upgrade-fcv for more details. 2018-01-06T14:28:51.762+0100 I NETWORK [initandlisten] shutdown: going to close listening sockets... 2018-01-06T14:28:51.763+0100 I NETWORK [initandlisten] removing socket file: /tmp/mongodb-27017.sock 2018-01-06T14:28:51.763+0100 I REPL [initandlisten] shutdown: removing all drop-pending collections... 2018-01-06T14:28:51.763+0100 I REPL [initandlisten] shutdown: removing checkpointTimestamp collection... 2018-01-06T14:28:51.763+0100 I STORAGE [initandlisten] shutdown: waiting for fs preallocator... 2018-01-06T14:28:51.763+0100 I STORAGE [initandlisten] shutdown: final commit... 2018-01-06T14:28:51.770+0100 I JOURNAL [initandlisten] journalCleanup... 2018-01-06T14:28:51.770+0100 I JOURNAL [initandlisten] removeJournalFiles 2018-01-06T14:28:51.770+0100 I JOURNAL [initandlisten] old journal file will be removed: /data/db/journal/j._0 2018-01-06T14:28:51.771+0100 I JOURNAL [initandlisten] Terminating durability thread ... 2018-01-06T14:28:51.870+0100 I JOURNAL [journal writer] Journal writer thread stopped 2018-01-06T14:28:51.870+0100 I JOURNAL [durability] Durability thread stopped 2018-01-06T14:28:51.870+0100 I STORAGE [initandlisten] shutdown: closing all files... 2018-01-06T14:28:51.883+0100 I STORAGE [initandlisten] closeAllFiles() finished 2018-01-06T14:28:51.883+0100 I STORAGE [initandlisten] shutdown: removing fs lock... 2018-01-06T14:28:51.883+0100 I CONTROL [initandlisten] now exiting 2018-01-06T14:28:51.883+0100 I CONTROL [initandlisten] shutting down with code:62

任何帮助都会得到充实.

Any help would be apprichiated.

推荐答案

2018-01-06T14:28:51.762 + 0100 F CONTROL [initandlisten] **重要:升级问题:数据文件需要完全升级到3.4版,然后再尝试升级到3.6;参见 dochub.mongodb/core/3.6-upgrade-fcv了解更多信息.

这是您日志中的错误错误.

This is the fault error in your log.

所以我想您的/data/db中有一些3.4数据.

So I guess you have some 3.4 data in your /data/db.

  • 如果您希望全新安装,只需删除/data/db的内容并重新启动mongod
  • If you want a clean installation, just remove the contents of /data/db and restart mongod
  • 获得3.4个mongod
  • 引用: docs.mongodb/manual /release-notes/3.6-upgrade-standalone/

    更多推荐

    Mongod错误(与自制软件一起安装)

    本文发布于:2023-10-28 02:38:53,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1535267.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:错误   软件   Mongod

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!