Next, let’s adjust the firewall settings for our MongoDB installation. If you wish to disable the automatic startup, type: In the previous step we enabled MongoDB to start automatically with the server. You can also restart the server with a single command: To start the server when it is stopped, type: You can stop the server anytime by typing: To verify the status of the service, type: MongoDB installs as a systemd service, which means that you can manage it using standard systemd commands alongside all other system services in Ubuntu. Next, we’ll look at how to manage the server instance. Paste in the following:Ī value of 1 for the ok field in the response indicates that the server is working properly.
0 Comments
Leave a Reply. |