我想在我的rpi 3上安装最新版本的MongoDB,但apt-get install安装2.4版本。
如何安装最新版本?
发布于 2018-03-31 13:21:05
您需要一个64位的操作系统,所以请先将其复制到sdcard中。
然后可以从存储库安装(3.2)
apt show mongodb-server 2>/dev/null | grep Version
Version: 1:3.2.11-2+deb9u1或从源安装(3.6);
apt install git python-pip
mkdir /opt/mongodb
cd /opt/mongodb
wget http://prdownloads.sourceforge.net/scons/scons-3.0.1.tar.gz
tar -xzf scons-3.0.1.tar.gz
cd scons-3.0.1
python setup.py install
cd ../
git clone --depth 1 https://github.com/mongodb/mongo.git --branch v3.6
cd mongo
pip install -r buildscripts/requirements.txt
scons-3.0.1 core MONGO_VERSION=3.6.0-$(git rev-parse --short HEAD)
scons-3.0.1 installhttps://unix.stackexchange.com/questions/434669
复制相似问题