node.js在windows下服务不成功
2016-06-15 12:07
603 查看
net start mongodb 不成功,试了网上很多方法,还是不行
mongod --dbpath D:\mongodb\data\db
mongod --dbpath "D:\mongodb\data\db" --directoryperdb --logpath "D:\mongodb\data\log\mongodb.log" --install --serviceName "MongoDB" mongod --dbpath "D:\mongodb\data\db" --directoryperdb --logpath "D:\mongodb\data\log\mongodb.log" --remove --serviceName "MongoDB" mongod --install --directoryperdb --dbpath D:\mongodb\data\db --logpath D:\mongodb\data\log\mongodb.log --logappend --rest --serviceName "MongoDB" mongod --install --directoryperdb --dbpath D:\mongodb\data\db --logpath D:\mongodb\data\log\mongodb.log --logappend --rest --serviceName "MongoDB" On windows you first have to install mongodb as a service using the --install option. The commands you can use a command similar to the following to install it as a service. mongod --install --directoryperdb --dbpath C:\mongodb-win32-x86_64-2.4.6\data --logpath C:\mongodb-win32-x86_64-2.4.6\log\mongodb.log --logappend --rest The command above must be run with administrator privileges. After that is done you can then use the net start and net stop commands provided by Hugo. – Ed Ost Aug 31 '13 at 19:41
mongod --dbpath D:\mongodb\data\db
相关文章推荐
- Node.js中, 使用Q.ninvoke封装对象方法为promise
- ccah-500 第35题 What do you have to do on the cluster to allow the worker node to join
- ccah-500 第34题 you want to change a configuration parameter so that it affects all six DataNodes
- 19. Remove Nth Node From End of List
- crontab没有正确重定向导致磁盘inode节点空间满
- Swagger UI教程 API 文档神器 搭配Node使用 web api 接口文档 mvc接口文档
- ionic安装失败或者cordova安装失败解决方法
- nodejs读取图片像素
- [朝花夕拾]关于nodejs中child_process之中spawn和exec的区别
- LeetCode-237 Delete Node in a Linked List
- [leetcode] 19. Remove Nth Node From End of List python实现【easy】
- build_zone_zonelists() 初始化备用内存域链表node_zonelists
- node.js 回调函数
- 在node.js中,使用基于ORM架构的Sequelize,操作mysql数据库之增删改查
- LNK4098 defaultlib 'library' conflicts with use of other libs; use /NODEFAULTLIB:library
- 浅析Nodejs npm常用命令
- nodejs npm常用命令
- webpack共用于前后端的小坑
- ccah-500 第25题 what do you need to do when adding a new slave node to cluster
- nodejs记录一