After you install or configure the Cloud Monitor agent, you must restart it to apply the configuration. This topic describes how to restart the Cloud Monitor agent for C++ in Windows and Linux.
You can only manage the Cloud Monitor agent by using an administrator account (the root user for Linux or the Administrator user for Windows). However, using an administrator account may introduce certain risks, such as system stability or data security issues. Proceed with caution.
Windows
Use an administrator account to log on to the server on which the Cloud Monitor agent resides.
Go to the C:\Program Files\Alibaba\cloudmonitor directory in which the Cloud Monitor agent resides.
Double-click stop.bat to stop the Cloud Monitor agent.
Double-click start.bat to start the Cloud Monitor agent.
Linux
Use the root account to log on to the server on which the Cloud Monitor agent resides.
Run the following command to go to the directory of the Cloud Monitor agent:
cd /usr/local/cloudmonitor
Run the following command to restart the Cloud Monitor agent:
./cloudmonitorCtl.sh restart