直接复制以下命令后在服务器上使用 root 权限运行即可。
sudo bash -c "wget -e ‘http_proxy=hzcmsproxy.aliyun.com:3128‘ -O /tmp/cloudmonitor.tar.gz ‘http://cms-download.aliyun.com/release/1.1.24/linux64/agent-linux64-1.1.24-package.tar.gz‘ && \mkdir /usr/local/cloudmonitor && \tar -xf /tmp/cloudmonitor.tar.gz -C /usr/local/cloudmonitor && \/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh install && \/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh start"
sudo bash -c "wget -e ‘http_proxy=hzcmsproxy.aliyun.com:3128‘ -O /tmp/cloudmonitor.tar.gz ‘http://cms-download.aliyun.com/release/1.1.24/linux32/agent-linux32-1.1.24-package.tar.gz‘ && \mkdir /usr/local/cloudmonitor && \tar -xf /tmp/cloudmonitor.tar.gz -C /usr/local/cloudmonitor && \/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh install && \/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh start"
sudo /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh status
sudo /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh restart
sudo bash -c "/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh remove && rm -rf /usr/local/cloudmonitor"
本文出自 “李世龙” 博客,谢绝转载!
原文地址:http://lwm666.blog.51cto.com/11811339/1943972