Installing the tools and database
The SCG machine's hostname may not be changed after the MongoDB database has been installed and configured. If required, change the hostname before.
The following instructions use Ubuntu 20.04 and NGINX as a web server.
-
Add the package sources for MongoDB.
Copyecho "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb.list
wget -O /tmp/mongo.asc https://www.mongodb.org/static/pgp/server-4.4.asc
apt-key add /tmp/mongo.asc -
Add the package sources for Node.js.
Copywget -O /tmp/nodeSetup.sh https://deb.nodesource.com/setup_16.x
chmod a+x /tmp/nodeSetup.sh
/tmp/nodeSetup.sh -
Install MongoDB, Node.js and further dependencies.
Copyapt-get update
apt-get install mongodb-org nodejs nginx openvpn jq moreutils zip logrotate -
Check for the MongoDB version. The version must be 4.4.
Copymongo --version
-
Check for the Node.js version. The major version must be 16.
Copynode -v
Only earlier versions:1 Configure the database in the next step, see Configuring MongoDB for SCG. For later versions, install the Debian package now.