書名: MongoDB Administrator’s Guide作者名: Cyrus Dasadia本章字數: 42字更新時間: 2021-07-02 15:47:45
How to do it..
- Start your favorite text editor and add the following in a file called mongod.conf:
storage:
dbPath: /data/db
engine: wiredTiger
directoryPerDB: true
net:
port: 27000
bindIp: 127.0.0.1
ssl:
mode: requireSSL
PEMKeyFile: /data/mongo-secure.pem
- Start your mongod instance:
mongodb/bin/mongod --config /data/mongod.conf
推薦閱讀