首页 最新文章网站服务器运维正文

阿里云监控自动安装失败的处理方法及常用命令

[root@iZbp19kz2oogerbtslbw5xZ appuser]# /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh status
Removed stale pid file: /usr/local/cloudmonitor/wrapper/bin/./cloudmonitor.pid
cloudmonitor is not running.
[root@iZbp19kz2oogerbtslbw5xZ appuser]# /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh start
Starting cloudmonitor...
Waiting for cloudmonitor.......
running: PID:24556
[root@iZbp19kz2oogerbtslbw5xZ appuser]# /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh status
cloudmonitor is running: PID:24556, Wrapper:STARTED, Java:STARTED
[root@iZbp19kz2oogerbtslbw5xZ appuser]# 
# 重启
[root@iZbp19kz2oogerbtslbw5xZ appuser]# /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh restart
# 卸载
[root@iZbp19kz2oogerbtslbw5xZ appuser]# /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh remove && 
rm -rf /usr/local/cloudmonitor

[root@AY1309031759587435f2Z local]# REGION_ID=cn-hangzhou VERSION=1.3.7

> bash -c "$(curl https://cms-agent-cn-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com/release/cms_install_for_linux.sh)"


curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:

error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

More details here: http://curl.haxx.se/docs/sslcerts.html


curl performs SSL certificate verification by default, using a "bundle"

 of Certificate Authority (CA) public keys (CA certs). The default

 bundle is named curl-ca-bundle.crt; you can specify an alternate file

 using the --cacert option.

If this HTTPS server uses a certificate signed by a CA represented in

 the bundle, the certificate verification probably failed due to a

 problem with the certificate (it might be expired, or the name might

 not match the domain name in the URL).

If you'd like to turn off curl's verification of the certificate, use

 the -k (or --insecure) option.

[root@AY1309031759587435f2Z local]# wget https://cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com/release/cms_install_for_linux.sh

--2019-10-21 17:30:34--  https://cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com/release/cms_install_for_linux.sh

正在解析主机 cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com... 100.118.195.21

Connecting to cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com|100.118.195.21|:443... 已连接。

ERROR: cannot verify cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com's certificate, issued by `/C=BE/O=GlobalSign nv-sa/CN=GlobalSign Organization Validation CA - SHA256 - G2':

  Issued certificate has expired.

ERROR: certificate common name `*.oss.aliyuncs.com' doesn't match requested host name `cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com'.

To connect to cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com insecurely, use `--no-check-certificate'.

[root@AY1309031759587435f2Z local]# wget --no-check-certificate https://cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com/release/cms_install_for_linux.sh

--2019-10-21 17:32:06--  https://cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com/release/cms_install_for_linux.sh

正在解析主机 cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com... 100.118.195.21

Connecting to cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com|100.118.195.21|:443... 已连接。

WARNING: cannot verify cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com's certificate, issued by `/C=BE/O=GlobalSign nv-sa/CN=GlobalSign Organization Validation CA - SHA256 - G2':

  Issued certificate has expired.

WARNING: certificate common name `*.oss.aliyuncs.com' doesn't match requested host name `cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com'.

已发出 HTTP 请求,正在等待回应... 200 OK

长度:1493 (1.5K) [application/x-sh]

Saving to: `cms_install_for_linux.sh'


100%[======================================================================================================================================================================================>] 1,493       --.-K/s   in 0.008s  


2019-10-21 17:32:06 (185 KB/s) - `cms_install_for_linux.sh' saved [1493/1493]


[root@AY1309031759587435f2Z local]# chmod 777 ./cms_install_for_linux.sh

[root@AY1309031759587435f2Z local]# REGION_ID=cn-huhehaote VERSION=1.3.7 bash -c "./cms_install_for_linux.sh"

installing

downloading REGION_ID: cn-huhehaote

--2019-10-21 17:33:09--  http://cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com/release/1.3.7/linux64/agent-linux64-1.3.7-package.tar.gz

Resolving cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com... 100.118.195.21

Connecting to cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com|100.118.195.21|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 86492520 (82M) [application/octet-stream]

Saving to: `/usr/local/cloudmonitor/cloudmonitor.tar.gz'


100%[======================================================================================================================================================================================>] 86,492,520  8.57M/s   in 68s     


2019-10-21 17:34:18 (1.21 MB/s) - `/usr/local/cloudmonitor/cloudmonitor.tar.gz' saved [86492520/86492520]


Detected RHEL or Fedora:

Installing the cloudmonitor daemon..

Stopping cloudmonitor...

cloudmonitor was not running.

Starting cloudmonitor...

Waiting for cloudmonitor.....

running: PID:1031

[root@AY1309031759587435f2Z local]# /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh status

cloudmonitor is running: PID:1031, Wrapper:STARTED, Java:STARTED

[root@AY1309031759587435f2Z local]# 


©️公众号:思考者文刀

评论

精彩评论

百度搜索

站点信息

  • 文章总数:436
  • 页面总数:9
  • 分类总数:30
  • 标签总数:924
  • 评论总数:501
  • 浏览总数:1783899
觉得有用就打赏吧
关注本站公众号,享受更多服务!
联系方式
合作微信:itker0110
新媒体:Excel加油站(抖音/小红书/哔哩/头条)
公众号:左手Excel右手VBA
知乎:Excel其实很简单
Copyright2015-2024.Powered by ©️云水客 | 网站地图 | 辽ICP备14000512号-5
您是本站第531名访客 今日有0篇新文章