Install mongo Database YAWIK runs with mongo 2.4. So you can use the mongod version, which is shipped with your distribution. However, you should use a later version. Otherwise you have to enable the text search, which is disabled in 2.4 by default. In 2.6 and above the text search is enabled by default.

You can install e.g. mongo 3.2 by: (Our demo is running 3.2, development is done with 4.x)

We’ve installed mongo the following way:

sudo apt-key adv --keyserver hkp:// --recv D68FA50FEA312927
echo "deb xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt-get update
sudo apt-get install -y mongodb-org

If your linux comes with systemd, you can start your mongod with service mongo start. If you need an init script, because your linux comes with sysv, you can fetch it from mongodb github repository

cd /etc/init.d/
curl > mongod
chmod +x mongod
update-rc.d mongod defaults

Start your mongod with /etc/init.d/mongod start