当前位置:网站首页>After reshipment tencent greetings to monitor if the corresponding service does not exist by sc. Exe command to add services
After reshipment tencent greetings to monitor if the corresponding service does not exist by sc. Exe command to add services
2022-08-02 00:17:00 【shawyang】
There is a cvm cloud monitor without images. It is a special case. I have read two directories. The Monitor directory file is incomplete, and the Stargate directory is complete
C:\Program Files\qcloud\
C:\Program Files\qcloud\Monitor\Barad\admin
C:\Program Files\qcloud\Stargate\admin
Normally, there are .bat files in the two admin subdirectories,
But in this case, there is no Monitor\Barad\admin directory in the Monitor directory, so I first stopped the service and then backed up, then uninstalled and reinstalled. After reinstalling, I found that the Monitor directory has Monitor\Barad\admin.But the Stargate directory is not generated, the entire Stargate directory is not generated
Because the Stargate directory in the backup data is complete, I put the backup Stargate directory under C:\Program Files\qcloud\, and then import the registry of the Stargate service exported from the normal cloud monitoring system, then execute the command to add the Stargate service, then manually verify the 2 services, restart the 2 services after the unified shutdown, and then it is normal
Repair steps:
1. Stop 2 services
2. Download http://windowsbj-1251783334.cos.ap-beijing.myqcloud.com/baradagent-installer-v1.0.11.exe, right click to run as administrator
3. After running, check whether there are these two services in the service list, whether they are in the same running state, and ensure the same running state
4. If the Stargate service is missing, execute the following code in powershell, and manually confirm that the two services mentioned in the previous step are running in the same state
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. If security software is installed, it is recommended to release the C:\Program Files\qcloud directory in the security software, for example
边栏推荐
猜你喜欢

GIF making - very simple one-click animation tool

如何设计循环队列?快进来学习~

632. 最小区间

Ansible中的任务执行控制

当奈飞的NFT忘记了Web2的业务安全

Short video SEO optimization tutorial Self-media SEO optimization skills and methods

Win10安装DBeaver连接MySQL8、导入和导出数据库详细教程

background-image使用

如何发现新的潜力项目?工具推荐

An interesting project--Folder comparison tool (1)
随机推荐
QML package management
Study Notes: The Return of Machine Learning
EasyExcel的简单读取操作
How to design a circular queue?Come and learn~
如何优雅的消除系统重复代码
22. The support vector machine (SVM), gaussian kernel function
Is TCP reliable?Why?
【Leetcode】1206. Design Skiplist
[Headline] Written test questions - minimum stack
easy-excel 解决百万数据导入导出,性能很强
OpenCV DNN blogFromImage()详解
LeetCode_279_完全平方数
解析正则表达式的底层实现原理
632. 最小区间
单片机遥控开关系统设计(结构原理、电路、程序)
IO流基础
Using the "stack" fast computing -- reverse polish expression
Unity—四元数、欧拉角API+坐标系统
Collection of NFT tools
Quick solution for infix to suffix and prefix expressions