小石在线

阿里云监控插件安装和卸载
Linux Agent安装说明阿里云帮助链接安装直接复制以下命令后在服务器上使用root权限运行即可。64位sud...
扫描右侧二维码阅读全文
13
2018/03

阿里云监控插件安装和卸载

Linux Agent安装说明

阿里云帮助链接

安装

直接复制以下命令后在服务器上使用root权限运行即可。

64位

sudo bash -c 'CMS_HOME="/usr/local/cloudmonitor" CMS_VERSION="1.2.22" CMS_ARCH="linux64" CMS_PROXY="hzcmsproxy.aliyun.com:3128"; \
if [ -f $CMS_HOME/wrapper/bin/cloudmonitor.sh ] ; then $CMS_HOME/wrapper/bin/cloudmonitor.sh remove; rm -rf $CMS_HOME; fi ; \
mkdir -p $CMS_HOME && \
wget -e "http_proxy=$CMS_PROXY" -O "$CMS_HOME/cloudmonitor.tar.gz" "http://cms-download.aliyun.com/release/$CMS_VERSION/$CMS_ARCH/agent-$CMS_ARCH-$CMS_VERSION-package.tar.gz" && \
tar -xf $CMS_HOME/cloudmonitor.tar.gz -C $CMS_HOME && \
rm -f $CMS_HOME/cloudmonitor.tar.gz && \
chown -R root:root $CMS_HOME && \
$CMS_HOME/wrapper/bin/cloudmonitor.sh install && \
$CMS_HOME/wrapper/bin/cloudmonitor.sh start'

32位

sudo bash -c 'CMS_HOME="/usr/local/cloudmonitor" CMS_VERSION="1.2.22" CMS_ARCH="linux32" CMS_PROXY="hzcmsproxy.aliyun.com:3128"; \
if [ -f $CMS_HOME/wrapper/bin/cloudmonitor.sh ] ; then $CMS_HOME/wrapper/bin/cloudmonitor.sh remove; rm -rf $CMS_HOME; fi ; \
mkdir -p $CMS_HOME && \
wget -e "http_proxy=$CMS_PROXY" -O "$CMS_HOME/cloudmonitor.tar.gz" "http://cms-download.aliyun.com/release/$CMS_VERSION/$CMS_ARCH/agent-$CMS_ARCH-$CMS_VERSION-package.tar.gz" && \
tar -xf $CMS_HOME/cloudmonitor.tar.gz -C $CMS_HOME && \
rm -f $CMS_HOME/cloudmonitor.tar.gz && \
chown -R root:root $CMS_HOME && \
$CMS_HOME/wrapper/bin/cloudmonitor.sh install && \
$CMS_HOME/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"

最后修改:2018 年 03 月 13 日 02 : 38 PM
如果觉得我的文章对你有用,请随意赞赏

发表评论