Last Updated: Jul 16, 2020
This section contains information on how to install and run Postgres & Mongo database on a Linux environment. Refer to the Infrastructure requirements of JIFFY.ai DB server for all software and hardware pre-requisites.
Run the following commands to trigger the jiffy db installation:
- cd /tmp
- tar -xf jiffy_database_installer.tar.gz
- chmod u+x database_root.sh
- ./database_root.sh
The value provided in brackets for each user input will be considered as the default on pressing Enter key.
- systemctl stop postgresql-9.6
- systemctl start postgresql-9.6
- chown jiffyapp-usr:jiffyapp-usr database_nonroot.sh
Switch to the jiffyapp-usr user and run the following commands:
- cd /tmp
- chmod u+x database_nonroot.sh
- ./database_nonroot.sh
Run the following commands:
- mongo –ssl –sslCAFile /jiffydb/mongo/ssl/ca.pem –sslPEMKeyFile /jiffy
- db/mongo/ssl/mongocertkey.pem –sslAllowInvalidHostnames <
- /jiffydb/mongo/conf/mongo_initialize.js
Run the following commands:
- systemctl stop postgresql-9.6
- systemctl start postgresql-9.6
Run the following command:
mongod -f /jiffydb/mongo/conf/mongo.conf