![]() ![]() It also means you can do things like put the file in source control, or easily copy the configuration to another machine. This means you can change the configuration by simply editing the file. It’s possible to specify much of the configuration on the command line, but I find it’s better to set up the service using a config file. So we make two folders – use Windows Explorer if you like, or… mkdir C:\MONGO_DATA\ I think it’s cleaner to keep them apart, but if you insist on storing the same folder, each to their own. We will need two directories, one for the data files and one for log files. Run MongoDB as a Windows Service, getting it’s configuration from our file.Set up a configuration file, pointing to the data directories.It does not setup your data directories or setup the database running as a windows service. …but unlike the installer for SQL Server for example, the MongoDB installer does not leave you with a running database. So, having run the MongoDB installer, the files will have been copied to your machine, a bit like this… Part 3: Setting up Directories, Configuration and Service This post is part of a the series “Getting Started with MongoDB on Windows”: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |