Unicon documentation migration is in progress. You might find some broken links or experience minor issues in the documentation. We are working on resolving these issues.

X

Installing the tools and database

Important:

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.

  1. Add the package sources for MongoDB.

    echo "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
  2. Add the package sources for Node.js.

    wget -O /tmp/nodeSetup.sh https://deb.nodesource.com/setup_16.x chmod a+x /tmp/nodeSetup.sh /tmp/nodeSetup.sh
  3. Install MongoDB, Node.js and further dependencies.

    apt-get update apt-get install mongodb-org nodejs nginx openvpn jq moreutils zip logrotate
  4. Check for the MongoDB version. The version must be 4.4.

    mongo --version
  5. Check for the Node.js version. The major version must be 16.

    node -v

Note:

Only earlier versions (1 from < SCG 1 2209): Configure the database in the next step, see Configuring MongoDB for SCG. For later versions, install the Debian package now.

Installing the tools and database