当前位置:Gxlcms > 数据库问题 > 让mongodb在windows下作为服务启动

让mongodb在windows下作为服务启动

时间:2021-07-01 10:21:17 帮助过:4人阅读

1. Add directory logs in root directory of portal;
2. Add logs in .gitignore;
3. Run command prompt as administrator;
4. Run commands: mongod -dbpath=D:\Projects\MongoDB\data -logpath=D:\Projects\MongoDB\logs\mongodb.log –install;
5. Press Win+R, input services.msc, find MongoDB, right click & start;

PS. Operate services in command prompt:
1. net start mongodb
2. net stop mongodb
3. sc delete mongodb

让mongodb在windows下作为服务启动

标签:str   min   direct   rate   windows   opera   start   logs   res   

人气教程排行