转自:http://zhanzhan02.iteye.com/blog/1216950

 

1、cd到mongodb的bin目录下 
2、输入命令

  • mongod --logpath mongodb路径/logs/mongodb.log --logappend --dbpath mongodb目录/data --directoryperdb --serviceName MongoDB --install  


  • 如果出现 

  • all output going to : mongodb 路径/logs/mongodb.log  
  • Creating service MongoDB.  
  • Service cretion successful  
  • Service can be started from the command line via 'net start "MongoDB"'  

  • 表示成功 

    PS:这个时候打开服务找到MongoDB 然后启动,如果报错 Error 193: 0xc1 只要删除mongodb/bin目录下的mongod即可(改文件隐藏,需要显示隐藏文件) 

    相关文章:

    • 2021-10-11
    • 2022-12-23
    • 2022-01-01
    • 2022-12-23
    • 2022-12-23
    • 2022-12-23
    • 2022-02-21
    • 2021-09-25
    猜你喜欢
    • 2022-12-23
    • 2022-01-26
    • 2021-08-21
    • 2022-12-23
    • 2022-02-07
    • 2022-12-23
    • 2022-01-11
    相关资源
    相似解决方案