Issue the following command to install the latest stable version of MongoDB:
When this command completes, you have successfully installed MongoDB! Continue for configuration and start-up suggestions.
Starting MongoDB
Upstart users can start the mongod process by issuing the following command:
All other users can issue the following command to start mongod:
You can verify that mongod has started successfully by checking the contents of the log file at /var/log/mongodb/mongodb.log.
Stopping MongoDB
Upstart users can stop the mongod process by issuing the following command:
All other users can issue the following command to stop mongod:
Restarting MongoDB
Upstart users can restart the mongod process by issuing the following command:
All other users can issue the following command to restart mongod:
type "mongo" in your terminal to see the version
No comments:
Post a Comment