自訂資料庫與port
建立資料庫
mkdir /tmp/mongodb
mongod --port 27018 --dbpath /tmp/mongodb/
連接自訂資料庫與port
mongo --port 27018
mongo --port 27018
MongoDB shell version v4.2.1
connecting to: mongodb://127.0.0.1:27018/?compressors=disabled&gssapiServiceName=mongodb
Last updated
Was this helpful?