Ubuntu18 mongodb offline installation

surroundings

Ubuntu 18 + mongodb 4.0.10

1. Download the required version of the library
1 https://www.mongodb.com/download-center/community
2 https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/4.0/multiverse/binary-amd64/mongodb-org-server_4.0.10_amd64.deb
2. Install
sudo dpkg -i mongodb-org-server_4.0.10_amd64.deb
3. Start
1  Service Start the mongod
 2  # to see the process start or not 
3 netstat -laput
4. Connect

python installation database connections
using -i pip source selection will have a significant degree of acceleration when abnormal network

pip3 install pymongo -i https://pypi.tuna.tsinghua.edu.cn/simple/

 

Guess you like

Origin www.cnblogs.com/Rightsec/p/11006143.html