Docs Menu
Docs Home
/
MongoDB Ops Manager
/

Restart the MongoDB Agent

On this page

  • Restart the MongoDB Agent
  • Start the MongoDB Agent
  • Stop the MongoDB Agent

For maintenance or troubleshooting purposes, you may want to temporarily shut down or restart the MongoDB Agent.

If you installed the MongoDB Agent using an rpm package, such as on RHEL, CentOS, or SUSE, issue the following command to restart the MongoDB Agent:

sudo service mongodb-mms-automation-agent restart

If you installed the MongoDB Agent using a deb package, as on Ubuntu, issue the following command to restart the MongoDB Agent:

sudo restart mongodb-mms-automation-agent

Use these commands if you installed to Linux using a tar file. Issue the following commands from the directory to which you installed the MongoDB Agent:

pkill -f mongodb-mms-automation-agent
nohup ./mongodb-mms-automation-agent >> automation-agent.log 2>&1 &

If you installed the MongoDB Agent using an rpm package, such as on RHEL, CentOS, or SUSE, issue the following command to start the MongoDB Agent:

sudo service mongodb-mms-automation-agent start

If you installed the MongoDB Agent using a deb package, as on Ubuntu, issue the following command to start the MongoDB Agent:

sudo start mongodb-mms-automation-agent

Use this command if you installed to Linux using a tar file. Issue the following command from the directory to which you installed the MongoDB Agent:

nohup ./mongodb-mms-automation-agent >> automation-agent.log 2>&1 &

If you installed the MongoDB Agent using an rpm package, such as on RHEL, CentOS, or SUSE, issue the following command to stop the MongoDB Agent:

sudo service mongodb-mms-automation-agent stop

If you installed the MongoDB Agent using a deb package, as on Ubuntu, issue the following command to stop the MongoDB Agent:

sudo stop mongodb-mms-automation-agent

If you installed to a Linux system using a tar file, issue the following command to stop the MongoDB Agent:

pkill -f mongodb-mms-automation-agent

Back

Managed & Unmanaged Agents