1、将MongoDB服务器作为Windows服务运行。(菜鸟教程) mongod.exe --bind_ip yourIPadress --logpath "C:\data\dbConf\mongodb.log" --logappend --dbpath "C:\data\db" --port yourPortNumber --serviceName "YourServiceName" --serviceDisplayName "YourServiceName" --install *** walker *** 转载于:https://blog.51cto.com/walkerqt/1924116