在控制台輸入 mongod
啟動 mongodb服務,地址欄輸入http://localhost:27017/ 能看到下圖,表示服務啟動成功。
打開”MongoDB Compass Community“軟件 點擊”connect"按鈕時報 MongoDB not running on the provided host and port的錯誤,如下圖:
原因:之前由於工作需要,在host文件里 配置127.0.0.1 為xxxx,應該改為localhost
在控制台輸入 mongod
啟動 mongodb服務,地址欄輸入http://localhost:27017/ 能看到下圖,表示服務啟動成功。
打開”MongoDB Compass Community“軟件 點擊”connect"按鈕時報 MongoDB not running on the provided host and port的錯誤,如下圖:
原因:之前由於工作需要,在host文件里 配置127.0.0.1 為xxxx,應該改為localhost
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。