Windows快捷链接和参考中心

Running MongoDB on Windows

See the Install on Windows tutorial for more information on how to install and run the database for the first time.

Running as a Service

See the Windows Service page.

The MongoDB Server

Get pre-built binaries on the MongoDB Downloads page. Binaries are available for both 32 bit and 64 bit Windows. MongoDB uses memory-mapped files for data storage, so for servers managing more than 2GB of data you will definitely need the 64 bit version (and a 64 bit version of Windows).

The Windows 2008 MongoDB build uses newer features of Windows to enhance performance. Use this build if you are running with 64-bit Windows Server 2008 R2, Windows 7, or greater.

Writing Apps

You can write apps in almost any programming language, see the 驱动 page. In particular C#, .NET, PHP, C and C++ work just fine.

Building

We recommend using the pre-built binaries, but MongoDB builds fine with Visual Studio 2008 and 2010. See the “Building for Windows using Visual Studio 2008” and “Building for Windows using Visual Studio 2010” pages.

Versions of Windows

We have successfully run MongoDB (mongod, etc.) on:

  • Windows Server 2008 R2 64 bit
  • Windows 7 (32 bit and 64 bit)
  • Windows Vista
  • Windows XP

注解

As of MongoDB 2.1.2, Windows XP is no longer supported as a server environment.

Windows Azure

For information on running Windows on Azure, see Windows Azure.