Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.38 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. #Debian 9 - Stretch
  4. apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
  5. 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
  6. apt-get update
  7. apt-get install -y mongodb-org
  8. systemctl enable mongod
  9. systemctl start mongod
  10. systemctl status mongod
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement