0
我安裝在Ubuntu的MongoDB和/etc/init/mongod.conf
如下所示: - :無法識別的選項:存儲啓動時的MongoDB
# mongod.conf
# Where and how to store data.
storage:
dbPath: /data/var/lib/mongodb
journal:
enabled: true
# engine:
# mmapv1:
# wiredTiger:
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /data/var/log/mongodb/mongod.log
# network interfaces
net:
port: 27017
bindIp: 127.0.0.1
我跑
sudo mongod -f /etc/init/mongod.conf
錯誤信息時出現錯誤
無法識別的選項:存儲
This看起來像是由語法造成的類似問題。在我的mongod.conf
文件中似乎沒有這些問題。感謝任何見解!