下载MongoDB
http://downloads.mongodb.org/win32/mongodb-win32-i386-2.4.5.zip
下载Windows 32-bit版本并解压缩,程序文件都在bin目录中,其它两个目录分别是C++调用是的头文件和库文件。bin目录中包含如下几个程序:
1. mongo.exe,命令行客户端工具。
2. mongod.exe,数据库服务程序。
3. mongodump.exe,数据库备份程序。
4. mongoexport.exe,数据导出工具。
5. mongofiles.exe,GridFS工具。
6. mongoimport.exe,数据导入工具。
7. mongorestore.exe,数据库恢复工具。
8. mongos.exe,貌似是性能检测工具。
将MongoDB作为 Windows 服务随机启动
先创建D:\mongodb\logs\mongodb.log文件,用于存储MongoDB的日志文件, 再安装系统服务:
D:\mongodb\bin\mongod --dbpath=d:\data\db--logpath=d:\mongodb\logs\mongodb.log --install
(如果提示:Error connecting to the Service Control Manager这种错误,则应该使用管理员身份运行cmd
找到命令处理程序C:\Windows\System32\cmd.exe
右键:以管理员身份运行
)
--------------------------------------------------------------------
转自:
http://blog.csdn.net/w402606099/article/details/9240799
分享到:
相关推荐
infinite loop (due to an error in ListScanEx in the method FlexUtils). - FIX: The value of some string flex-properties that began with a parenthese or curly bracket had no apostrophe at the end; ...
Pipes: Connecting Endpoints to the Host 40 Types of Transfers 40 Stream and Message Pipes 42 Initiating a Transfer 43 Transactions: the Building Blocks of a Transfer 44 Transaction Phases 45 Ensuring ...
Added option to prevent modem control signals following legacy port behaviour at startup. 1.00.2159 (October 15, 2004) Fixed delay on disconnect under WinXP. 1.00.2157 (September 28, 2004) ...
- **Connecting to Oracle**:涵盖了连接到Oracle数据库的各种方式。 - **Server Login Window**:介绍了服务器登录窗口的使用方法。 - **Create New Connection**:指导用户创建新的连接。 - **Selecting ...
Error Detection and Reporting Policy Hooks ............................................... 18 Task Switch Hook Support .............................................................................. 18...