wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-3.6.2.tgz
tar -xzvf mongodb-linux-x86_64-rhel70-3.6.2.tgz
mv mongodb-linux-x86_64-3.6.2/ /usr/local/mongodb
export PATH=<mongodb-install-directory>/bin:$PATH
mkdir -p /data/db
cd /usr/local/mongodb/bin
启动:./mongod 默认端口27017
创建软连接随处可执行:ln -s /usr/local/mongodb/bin/mongo /bin/mongo
操作数据库:mongo
mongodb基本操作见:https://blog.csdn.net/qq_41262248/article/details/80967060
tar -xzvf mongodb-linux-x86_64-rhel70-3.6.2.tgz
mv mongodb-linux-x86_64-3.6.2/ /usr/local/mongodb
export PATH=<mongodb-install-directory>/bin:$PATH
mkdir -p /data/db
cd /usr/local/mongodb/bin
启动:./mongod 默认端口27017
创建软连接随处可执行:ln -s /usr/local/mongodb/bin/mongo /bin/mongo
操作数据库:mongo
mongodb基本操作见:https://blog.csdn.net/qq_41262248/article/details/80967060