阿里云监控 Linux Agent安装
安装
直接复制以下命令后在服务器上使用 root 权限运行即可。
64位
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"
32位
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"