上QQ阅读APP看书,第一时间看更新
Technical requirements
Minimum recommended hardware:
- Desktop PC or laptop
- 2 gigabytes (GB) free disk space
- 4 GB of random-access memory (RAM)
- 500 kilobits per second (Kbps) or faster internet connection
Software requirements:
- OS (Linux or Mac): Docker, Docker Compose, Git (optional)
- OS (Windows): Docker for Windows and Git for Windows
Installation of the required software and how to restore the code repository for the book are explained in Chapter 2, Setting up MongoDB 4.x. To run the code examples in this chapter, open a Terminal window (Command Prompt) and enter these commands:
cd /path/to/repo
docker-compose build
docker-compose up -d
docker exec -it learn-mongo-server-1 /bin/bash
When you are finished practicing the commands covered in this chapter, be sure to stop Docker as follows:
docker-compose down
The code used in this chapter can be found in the book's GitHub repository at https://github.com/PacktPublishing/Learn-MongoDB-4.x/tree/master/chapters/03.