Just modify the configuration file agent/config/application.properties, change the configuration item shellToRun to yes, and then restart the agent
#是否允许agent执行server下发的指令,yes是,no否
shellToRun=yes
This is because the WGCLOUD monitoring platform disables the agent to execute the instruction function by default. This is also a small protection mechanism. You only need to change no to yes.
Don't forget to restart the agent, it will take effect after restarting