Search

Database Server

Articles

Perform the following steps to stop and start the JIFFY.ai application whenever there is maintenance activity in the JIFFY.ai core server or application upgrades etc.

Checking Database Server Status

Execute the mentioned commands to check Database services status:

Postgres Status

systemctl status postgresql-9.6

Image description

Mongo Status

Ps -ef | grep mongo

Image description

Stop Database Server

Execute the mentioned commands to stop the Database services:

Step 1

Start the Postgres Service

  • systemctl stop postgresql-9.6
  • systemctl status postgresql-9.6

Image description

Step 2

Start the Mongo Service

  • ps -ef | grep mongo | grep -v "grep mongo"| awk '{ print $2 }'| xargs kill -9
  • ps -ef | grep mongo

Image description

Start Database Server

Execute the mentioned commands to start the Database services:

Step 1

Start the Postgres Service

  • systemctl start postgresql-9.6
  • systemctl status postgresql-9.6

Image description

Step 2

Start the Mongo Service

mongod -f \$MOUNTPOINT/mongo/conf/mongo.conf

Image description

Did you find what you were looking for?