@echo off
rem top directory
C:
rem set text color
color 0a
rem cd to the bin folder
cd C:\Program Files\MongoDB\Server\3.2\bin
rem start mongodb
mongod --dbpath=E:\mongodb\db
转载于:https://my.oschina.net/yuewawa/blog/671247
@echo off
rem top directory
C:
rem set text color
color 0a
rem cd to the bin folder
cd C:\Program Files\MongoDB\Server\3.2\bin
rem start mongodb
mongod --dbpath=E:\mongodb\db
转载于:https://my.oschina.net/yuewawa/blog/671247