当前位置:网站首页>重装腾讯云云监控后如果对应服务不存在可通过sc.exe命令添加服务
重装腾讯云云监控后如果对应服务不存在可通过sc.exe命令添加服务
2022-08-02 00:00:00 【shawyang】
有台cvm云监控没图像,是个特殊case,2个目录我看了下,Monitor目录文件不完整,Stargate目录是完整的
C:\Program Files\qcloud\
C:\Program Files\qcloud\Monitor\Barad\admin
C:\Program Files\qcloud\Stargate\admin
正常来说这2个admin的子目录里有.bat文件,
但这个case里,Monitor那个目录里没有Monitor\Barad\admin目录,于是我先停止服务后进行备份,然后卸载、重新安装,重新安装后,发现Monitor目录有Monitor\Barad\admin了,但是Stargate目录没有生成,是整个Stargate目录都没有生成
因为备份的数据里Stargate目录是完整的,于是我把备份的Stargate目录放到了C:\Program Files\qcloud\下面,然后导入了从云监控正常的系统中导出的Stargate服务的注册表,然后执行命令添加了Stargate服务,然后手动校验2个服务,统一关闭后重新启动了2个服务,然后就正常了
修复步骤:
1、停止2个服务
2、下载http://windowsbj-1251783334.cos.ap-beijing.myqcloud.com/baradagent-installer-v1.0.11.exe ,右键以管理员运行
3、运行后在服务列表看是否有这2个服务、是否是相同的运行状态,确保运行状态相同
4、如果缺少Stargate服务,在powershell里执行如下代码,并手动确认上步提到的2个服务运行状态相同
wget "http://windowsbj-1251783334.cos.ap-beijing.myqcloud.com/StargateSvc.reg" -outfile "C:\Program Files\qcloud\StargateSvc.reg"
sc.exe stop BaradAgentSvc
sc.exe stop StargateSvc
cd "C:\Program Files\qcloud\"
reg import StargateSvc.reg
sc.exe create StargateSvc binpath= "C:\Program Files\QCloud\Stargate\sgagent.exe" start= auto displayname= "QCloud Stargate Manager"
sc.exe description StargateSvc "Provides Stargate Service"
5、如果安装有安全软件,建议在安全软件里放行下C:\Program Files\qcloud目录,例如
边栏推荐
猜你喜欢

Win11内存管理错误怎么办?

windows sql server 如何卸载干净?

Axure tutorial - the new base (small white strongly recommended!!!)

【MySQL系列】MySQL索引事务

面试必问的HashCode技术内幕

月薪12K,蝶变向新,勇往直前—她通过转行测试实现月薪翻倍~

认识USB、Type-C、闪电、雷电接口

security cross-domain configuration

Win11如何获得最佳电源效率?

cdh的hue上oozie启动报错,Cannot allocate containers as requested resource is greater than maximum allowed
随机推荐
TexturePacker使用文档
With a monthly salary of 12K, the butterfly changed to a new one and moved forward bravely - she doubled her monthly salary through the career change test~
使用Ganache、web3.js和remix在私有链上部署并调用合约
Quartus 使用 tcl 文件快速配置管脚
QML package management
辛普森悖论
Thinkphp 5.0.24变量覆盖漏洞导致RCE分析
WEB安全基础 - - - XRAY使用
Quartus uses tcl files to quickly configure pins
security CSRF Vulnerability Protection
单片机遥控开关系统设计(结构原理、电路、程序)
如何用Redis实现分布式锁?
【Leetcode】473. Matchsticks to Square
为什么要使用MQ消息中间件?这几个问题必须拿下
Ansible中的任务执行控制
C language Qixi is coming!It's time to show the romance of programmers!
ES中SQL查询详解
CDH6 Hue to open a "ASCII" codec can 't encode characters
尚硅谷MySQL学习笔记
机器学习文本分类