win7 64位 mongodb2.6.0 安装服务启动
来源:互联网 发布:检测网络的命令ping 编辑:程序博客网 时间:2024/06/05 06:33
Workaround to install as a service
You can manually install 2.6.0 as a service on Windows from an Administrator cmd prompt.
Assuming you have installed MongoDB using the MSI installer, the default path will be C:\Program Files\MongoDB 2.6 Standard. If you have installed in an alternative directory you will need to adjust the paths as appropriate.
Steps to install:
1) Open an Administrator command prompt
- Windows 7 / Vista / Server 2008 (and R2)
- Press Win + R, then type "cmd", then press Ctrl + Shift + Enter.
- Windows 8 / 8.1
- Press Win + X, then press A.
2. Make directories for your database and log files
mkdir c:\data\dbmkdir c:\data\log
3. Create a configuration file. This file can include any of the configuration options for mongod, but at a minimum must include a valid setting for logpath:
echo logpath=c:\data\log\mongod.log> "C:\Program Files\MongoDB 2.6 Standard\mongod.cfg"echo dbpath=c:\data\db>> "C:\Program Files\MongoDB 2.6 Standard\mongod.cfg"
4. Create the MongoDB service
sc create MongoDB binPath= "\"C:\Program Files\MongoDB 2.6 Standard\bin\mongod.exe\" --service --config=\"C:\Program Files\MongoDB 2.6 Standard\mongod.cfg\"" DisplayName= "MongoDB 2.6 Standard" start= "auto"
Note that sc requires a space between "=" and the configuration values (eg "binPath= "), and a "\" to escape double quotes.
If this works you should see:
[SC] CreateService SUCCESS
5. Start the MongoDB service:
net start MongoDB
If successful you should be able to connect using the mongo shell. If the service did not start successfully, the log file should contain information to help you troubleshoot
转自http://www.cnblogs.com/leolai/p/3673651.html
- win7 64位 mongodb2.6.0 安装服务启动
- win7 64位操作系统 安装mysql 5.7.X mysql 无法启动服务
- WIN7/8.1 64位rails服务无法启动的解决方案
- MongoDB2.6window系统下安装服务
- 关于win7 64位系统安装apache的 教程 httpd2.4服务无法启动 443端口被占用问题
- win7 64位旗舰版 安装 cisco VPN client ,无法启动
- Win7 64位安装openfire启动失败问题
- win7 64位安装virtualbox-4.3.24,无法启动
- PLSQL连不上Win7 64位系统下安装的Oracle11g64位服务实例的解决办法
- win7 64位的tomcat7无法作为服务启动的问题
- win7 64位 安装DB2
- win7 64位安装JMF
- USB安装64位win7
- WIN7 64位安装oracle11g
- ModelSim win7 64位安装
- win7 64位安装matlabR2011b
- win7 64位 scrapy安装
- MySql安装win7 64位
- Oracle DG故障诊断一则:alter database recover to logical standby new_logical_dbname卡住
- EM
- Jackson将json字符串转换成泛型List
- ServletContext总结
- shell参考
- win7 64位 mongodb2.6.0 安装服务启动
- 推荐一款VC++程序员用的开源界面库Xtreme Toolkit
- 如何在android模拟器上创建sd卡并向里面存入文件
- iOS中的一些内存问题,block,NSTimer,dealloc
- 指针
- System.IO.Path类
- SharePoint隐藏快速启动栏_左侧导航_所有网站内容_回收站
- The Most Important Algorithms (in CS and Math)
- Towers