Restart the MongoDB Agent
- OAuth 2.0 authentication for programmatic access to Cloud Manager is available as a Preview feature.
- The feature and the corresponding documentation might change at any time during the Preview period. To use OAuth 2.0 authentication, create a service account to use in your requests to the Cloud Manager Public API.
For maintenance or troubleshooting purposes, you may want to temporarily shut down or restart the MongoDB Agent.
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 &
Start 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
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 &
Stop 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 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