解決
1. 先檢查自己的配置資訊,如若一切無誤后,則使用管理員模式開啟cmd,不要直接打開cmd,

2. 然后在cmd中轉跳至自己MongoDB的bin目錄,使用我的舉例是:
cd "C:\Program Files\MongoDB\Server\3.4\bin"
3. 然后cmd寫入服務
mongod --dbpath "D:\MongodbData\data" --logpath "D:\MongodbData\logs\mongodb.log" --install --serviceName "MongoDB"
4. 最后是開啟服務
net start MongoDB
5. 開啟完可進行簡單的測驗是否開啟
在瀏覽器中輸入http://127.0.0.1:27017,如若顯示It looks like you are trying to access MongoDB over HTTP on the native driver port. 則開啟成功

或者去計算機管理頁面中查看是否開啟

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/238062.html
標籤:其他
上一篇:計組考前重點快速Q&A
下一篇:C51單片機學習
