Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #Debian 9 - Stretch
- apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
- echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main" | tee /etc/apt/sources.list.d/mongodb-org-4.0.list
- apt-get update
- apt-get install -y mongodb-org
- systemctl enable mongod
- systemctl start mongod
- systemctl status mongod
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement