メンテナンスやトラブルシューティングの目的で、MongoDB Agent を一時的にシャットダウンまたは再起動することをお勧めします。
MongoDB Agent を再起動する
RHEL、CentOS、SUSE など、 rpmパッケージを使用して MongoDB Agent をインストールした場合は、次のコマンドを発行して MongoDB Agent を再起動します。
sudo service mongodb-mms-automation-agent restartUbuntu と同様にdebパッケージを使用して MongoDB Agent をインストールした場合は、次のコマンドを実行して MongoDB Agent を再起動します。
sudo restart mongodb-mms-automation-agenttarファイルを使用して Linux にインストールした場合は、これらのコマンドを使用します。 MongoDB Agent をインストールしたディレクトリから次のコマンドを実行します。
pkill -f mongodb-mms-automation-agentnohup ./mongodb-mms-automation-agent >> automation-agent.log 2>&1 &MongoDB Agent の起動
RHEL、CentOS、SUSE など、 rpmパッケージを使用して MongoDB Agent をインストールした場合は、次のコマンドを発行して MongoDB Agent を起動します。
sudo service mongodb-mms-automation-agent startUbuntu と同様にdebパッケージを使用して MongoDB Agent をインストールした場合は、次のコマンドを実行して MongoDB Agent を起動します。
sudo start mongodb-mms-automation-agenttarファイルを使用して Linux にインストールした場合は、次のコマンドを使用します。 MongoDB Agent をインストールしたディレクトリから次のコマンドを実行します。
nohup ./mongodb-mms-automation-agent >> automation-agent.log 2>&1 &MongoDB Agent の停止
RHEL、CentOS、SUSE など、 rpmパッケージを使用して MongoDB Agent をインストールした場合は、次のコマンドを発行して MongoDB Agent を停止します。
sudo service mongodb-mms-automation-agent stopUbuntu と同様にdebパッケージを使用して MongoDB Agent をインストールした場合は、次のコマンドを実行して MongoDB Agent を停止します。
sudo stop mongodb-mms-automation-agenttarファイルを使用して Linux システムにインストールした場合は、次のコマンドを実行して MongoDB Agent を停止します。
pkill -f mongodb-mms-automation-agent