阿里云监控插件安装
Linux Agent安装说明
安装
直接复制以下命令后在服务器上使用root权限运行即可。
sudo bash -c 'CMS_HOME="/usr/local/cloudmonitor" CMS_VERSION="1.2.24" CMS_ARCH="linux64" CMS_PROXY="bjcmsproxy.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 bash -c 'CMS_HOME="/usr/local/cloudmonitor" CMS_VERSION="1.2.24" 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"
天津雍博科技有限责任公司
欢迎大家访问www.yongbosoft.com ,崇尚技术,为您提供完美产品,优质服务!