suchen

Heim  >  Fragen und Antworten  >  Hauptteil

mongodb - mongod通过配置文件无法启动

mongodb是通过brew下载的,在/usr/local/etc下有个mongod.conf配置文件。
现在我想通过命令
mongod --config /usr/local/etc/mongod.conf 来启动mongod 。
提示错误Error reading config file: No such file or directory 找不到文件。

新手刚刚学习mongodb希望能有人帮忙解决问题。

phpcn_u1582phpcn_u15822863 Tage vor600

Antworte allen(2)Ich werde antworten

  • phpcn_u1582

    phpcn_u15822017-04-26 09:03:22

    题主貌似写错了文件名了。是 mongod.conf,不是mongodb.conf
    mongod --config /usr/local/etc/mongod.conf

    Antwort
    0
  • phpcn_u1582

    phpcn_u15822017-04-26 09:03:22

    --config 没有这个参数啊

    Antwort
    0
  • StornierenAntwort