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.

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