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.
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
Use an administrator account to log on to the server on which the CloudMonitor agent resides.
Go to the C:\Program Files\Alibaba\cloudmonitor directory in which the CloudMonitor agent resides.
Double-click stop.bat to stop the CloudMonitor agent.
Double-click start.bat to start the CloudMonitor agent.
Linux
Use the root account to log on to the server on which the CloudMonitor agent resides.
Run the following command to go to the directory of the CloudMonitor agent:
cd /usr/local/cloudmonitor
Run the following command to restart the CloudMonitor agent:
./cloudmonitorCtl.sh restart