Wednesday, October 5, 2022

 

Install mongosh




To use the MongoDB Shell, you must have a MongoDB deployment to connect to.

You can use the MongoDB Shell to connect to MongoDB version 4.0 or greater.

Select the appropriate tab for your operating system:

NOTE

On Windows, mongosh preferences and configuration options are stored in the %APPDATA%/mongodb/mongosh directory.

1

Open the MongoDB Download Center.

2
3
4
5
1

Open the MongoDB Download Center.

2

Download the appropriate version of mongosh for your operating system. MongoDB also provides versions of mongosh that use the system's OpenSSL installation. For details, see the MongoDB Download Center.

3
4

Ensure that the extracted MongoDB Shell binary is in the desired location in your filesystem, then add that location to your PATH environment variable.

To add the MongoDB Shell binary's location to your PATH environment variable:

  1. Open the Control Panel.

  2. In the System and Security category, click System.

  3. Click Advanced system settings. The System Properties modal displays.

  4. Click Environment Variables.

  5. In the System variables section, select Path and click Edit. The Edit environment variable modal displays.

  6. Click New and add the filepath to your mongosh binary.

  7. Click OK to confirm your changes. On each other modal, click OK to confirm your changes.

To confirm that your PATH environment variable is correctly configured to find mongosh, open a command prompt and enter the mongosh --help command. If your PATH is configured correctly, a list of valid commands displays.

No comments:

Post a Comment

So sánh các GitFlow model và áp dụng với CICD

https://medium.com/oho-software/so-s%C3%A1nh-c%C3%A1c-gitflow-model-v%C3%A0-%C3%A1p-d%E1%BB%A5ng-v%E1%BB%9Bi-cicd-b6581cfc893a