Mongodb ubuntu 16.04无法启动服务


  • 註冊用戶

    我重装以后无法启动mongodb,这是sudo systemctl的结果

    ● mongodb.service - High-performance, schema-free document-oriented database
       Loaded: loaded (/etc/systemd/system/mongodb.service; enabled; vendor preset: enabled)
       Active: failed (Result: exit-code) since Wed 2017-04-05 16:31:03 UTC; 6s ago
      Process: 14024 ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf (code=exited, status=1/FAILURE)
      Main PID: 14024 (code=exited, status=1/FAILURE)    
    Apr 05 16:31:02 nodejs-512mb-fra1-01 systemd[1]: Started  High-performance, schema-free document-oriented database.
    Apr 05 16:31:03 nodejs-512mb-fra1-01 mongod[14024]: error command line: unrecognized line in 'storage:'
    Apr 05 16:31:03 nodejs-512mb-fra1-01 mongod[14024]: use --help for help
    Apr 05 16:31:03 nodejs-512mb-fra1-01 systemd[1]: mongodb.service: Main process exited, code=exited, status=1/FAILURE
    Apr 05 16:31:03 nodejs-512mb-fra1-01 systemd[1]: mongodb.service: Unit entered failed state.
    Apr 05 16:31:03 nodejs-512mb-fra1-01 systemd[1]: mongodb.service: Failed with result 'exit-code'

  • Lv 1

    @sevengong 说:

    error command line: unrecognized line in 'storage:'

     錯誤訊息寫得很清楚.. 配置錯誤

    error command line: unrecognized line in 'storage:'

  • 註冊用戶

    @sevengong

    到 /var/log/mongodb/ 看看有什麼錯誤 log


登录后回复
 

与 萌阔论坛 的连接断开,我们正在尝试重连,请耐心等待