All Products
Search
Document Center

CloudMonitor:How do I restart the CloudMonitor agent for C++?

Last Updated:Aug 28, 2024

After you install or configure the CloudMonitor agent, you must restart it to apply the configuration. This topic describes how to restart the CloudMonitor agent for C++ in Windows and Linux.

Important

You can manage the CloudMonitor agent only by using an administrator account. For Linux operating systems, use the root user account. For Windows operating systems, use the Administrator account. If you use an administrator account, certain risks may occur. For example, system stability or data security issues may occur. Proceed with caution.

Windows

  1. Use an administrator account to log on to the server on which the CloudMonitor agent resides.

  2. Go to the C:\Program Files\Alibaba\cloudmonitor directory in which the CloudMonitor agent resides.

  3. Double-click stop.bat to stop the CloudMonitor agent.

  4. Double-click start.bat to start the CloudMonitor agent.

Linux

  1. Use the root account to log on to the server on which the CloudMonitor agent resides.

  2. Run the following command to go to the directory of the CloudMonitor agent:

    cd /usr/local/cloudmonitor

  3. Run the following command to restart the CloudMonitor agent:

    ./cloudmonitorCtl.sh restart