mongoDB 安裝過程

來源:互聯網
上載者:User

標籤:win10   win7   提示   表示   錯誤資訊   安裝   god   name   服務   

1.在官方網站下載 mongoDB的安裝包,我下載的是3.4.6  系統為win10_64

 

2.需要安裝vc++2015 在安裝時發現 win7 系統安裝不了。 不得已才安裝的win10

 

3.安裝mongoDB 點擊安裝包直接下一步即可

 

4.在安裝好的mongoDB安裝目錄中添加檔案夾 :data/db(資料存放檔案夾) , log(日誌存放檔案夾)

 

5.執行命令 mongod --logpath "F:\MongoDB\Server\3.4\log\mongo.log" --logappend --dbpath "F:\MongoDB\Server\3.4\data\db"  --serviceName "mongodb"  --install               (命令中的兩個路徑分別為 data/db 和log 檔案夾,此命令表示將mongoDB加入系統服務)

 

6.無錯誤資訊即表示安裝成功,然後啟動服務  : net start mongodb

 

7.提示啟動成功後, 輸入命令   mongo --shell       串連mongodb 進入mongo操作

 

mongoDB 安裝過程

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.