// MongoDB from source // disable zswap in boot param adding nozswap // your tinecore server must have at least 8GB of memory for cloning and compiling ~$ tce-load -iw compiletc git gcc python3.9 scons openssl-1.1.1-dev curl-dev ~$ sudo python3.9 -m ensurepip ~$ sudo python3.9 -m pip install --upgrade pip ~$ git clone https://github.com/mongodb/mongo.git ~$ cd mongo ~/mongo$ sudo python3.9 -m pip install -r etc/pip/compile-requirements.txt ~/mongo$ python3.9 buildscripts/scons.py -j 4 --ssl CPPPATH=/usr/local/include/openssl LIBPATH=/usr/local/lib install-mongod ~/mongo$ python3.9 buildscripts/scons.py -j 4 --ssl CPPPATH=/usr/local/include/openssl LIBPATH=/usr/local/lib install-mongo ~/mongo$ python3.9 buildscripts/scons.py -j 4 --ssl CPPPATH=/usr/local/include/openssl LIBPATH=/usr/local/lib install-mongos ~/mongo$ cd build/install/bin ~/mongo/build/install/bin$ strip mongod ~/mongo/build/install/bin$ strip mongo ~/mongo/build/install/bin$ strip mongos