Bootstrap
之前第一次使用时,在阿里云后台点击是自动装的插件,后来恢复镜像后发现,云监控插件又变成已停止了,后台好像装不了。于是查找资料手动装一下。下面是具体的安装方法。

Linux阿里云云监控插件安装方法

1、Linux64位系统

sudo bash -c "wget -O /tmp/cloudmonitor.tar.gz 'http://cms-download.aliyun.com/release/1.1.64/linux64/agent-linux64-1.1.64-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"

2、Linux32位系统

sudo bash -c "wget -O /tmp/cloudmonitor.tar.gz 'http://cms-download.aliyun.com/release/1.1.64/linux32/agent-linux32-1.1.64-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"

3、查看插件运行状态

/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh status

4、重启插件

/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh restart

5、卸载插件

/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh remove && rm -rf /usr/local/cloudmonitor