当前位置:网站首页>重装腾讯云云监控后如果对应服务不存在可通过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目录,例如
边栏推荐
猜你喜欢
QML包管理
UI自动化测试框架搭建-标记性能较差用例
GetHashCode与Equals
【MySQL系列】 MySQL表的增删改查(进阶)
Detailed explanation of Zadig's self-testing and tuning environment technical solution for developers
How to solve the error when mysql8 installs make
Flink Yarn Per Job - 提交流程一
Work for 5 years, test case design is bad?To look at the big case design summary
使用Jenkins做持续集成,这个知识点必须要掌握
双队列实现栈?双栈实现队列?
随机推荐
根本上解决mysql启动失败问题Job for mysqld.service failed because the control process exited with error code
【图像融合】基于加权和金字塔实现图像融合附matlab代码
【MySQL系列】 MySQL表的增删改查(进阶)
在CentOS下安装MySQL
The Spark of Sql join on the and and where
Win11如何获得最佳电源效率?
OpenCV DNN blogFromImage() detailed explanation
工作5年,测试用例都设计不好?来看看大厂的用例设计总结
【MySQL系列】MySQL索引事务
LeetCode_322_零钱兑换
Axure tutorial - the new base (small white strongly recommended!!!)
security CSRF漏洞保护
Study Notes: The Return of Machine Learning
@WebServlet注解(Servlet注解)
[Three sons] C language implements simple three sons
solidity
字节跳动面试官:请你实现一个大文件上传和断点续传
recursion: method calls itself
Several interview questions about golang concurrency
【Leetcode】475. Heaters