Last Updated: Dec 28, 2022
Perform the following steps to stop and start the Database Server whenever there is maintenance activity or application upgrades.
Execute the mentioned commands to check Database services status:
systemctl status postgresql-12
ps -ef | grep mongo
Execute the mentioned commands to stop the Database services:
- systemctl stop postgresql-12
- systemctl status postgresql-12
- ps -ef | grep mongo | grep -v "grep mongo"| awk '{ print $2 }'| xargs kill -9
- ps -ef | grep mongo
Execute the mentioned commands to start the Database services: