![]() ![]() Next Step: Create a Java EE 7 Batch Application to Populate Data in the Mongo Database. These are the steps for installing MongoDB as a Windows Serviceġ) On server 1, navigate to the C:\MongoDB directory and create a new folder named \conf and within that directory a file called nf. The easiest way to create this is as a text file in windows explorer and then just change the file name (you will need to do View and check File Name Extensions in order to remove the. There are many other ways to do this, but you need to end up with a nf file in the C:\MongoDB\conf directory and opened in notepad. This shows how do create and open it by creating a text file in explorer and just moving it to another name at the prompt. When you right click the file and chose open with you can assign notepad as the default application for all files ending in. conf.Ģ) Enter the data in the conf file as shown below: mongod –config C:\MongoDB\conf\nf –install Server one is port 27117.ģ) Navigate to the C:\MongoDB\bin directory and execute the following commands: Note: The port number needs to match the server. This will install and start the MongoDB serviceĤ) Open the Services function in Windows and you will see MongoDB runningĥ) Right click on the service and select propertiesĦ) Change the Startup type to Automatic (if not already selected) so that it will start with a server restart.ħ) Login to the MongoDB server (mongodb002 or mongodb003) and open file explorer. ![]() Install mongodb on windows server 2012 install# Install mongodb on windows server 2012 install#.
0 Comments
Leave a Reply. |