windows8系統安裝MongoDB 2.6.3佈建服務啟動

來源:互聯網
上載者:User

標籤:

轉自:http://winfan.net/655.html

1. 下載mongodb包
2. 解壓zip至 D:\MongoDB
3. 建立目錄 D:\MongoDB\data\db
4. 建立日誌目錄 D:\MongoDB\log
5. 建立設定檔 D:\MongoDB\mongod.cfg 內容如下

123456789 systemLog:  destination: file  path: D:\MongoDB\log\mongo.lognet:  bindIp: 127.0.0.1  port: 27017storage:  dbPath: D:\MongoDB\data\db  directoryPerDB: true

6.以管理員開啟c:/windows/system32/cmd.exe執行以下命令

1 d:\MongoDB\bin\mongod.exe --config d:\MongoDB\mongod.cfg --install

接著執行

1 sc create MongoDB binPath= "d:\MongoDB\bin\mongod.exe --config=d:\MongoDB\mongod.cfg --service" displayname= "MongoDB 2.6 Standard Server" start= auto

ps:如何刪除此服務:則sc delete MongoDB

7:開啟服務

12 net start MongoDB //開啟服務net stop MongoDB  //停止服務

windows8系統安裝MongoDB 2.6.3佈建服務啟動

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.