当前位置:网站首页>monit安装和使用
monit安装和使用
2022-07-25 11:23:00 【托塔天王李】
centos 安装和使用monit
monit 主要命令
- 安装monit
# yum install monit
- 启动monit
# monit -c /etc/monitrc
- 停止monit监控
# monit quit
- 输出monit监控服务的状态
monit status
配置monit监控keepalived
[[email protected] monit.d]# ll
总用量 28
-rw-r--r-- 1 root root 173 3月 4 17:15 httpd
-rw-r--r-- 1 root root 183 3月 4 17:11 keepalived
-rw-r--r-- 1 root root 51 12月 27 2017 logging
-rw-r--r-- 1 root root 177 3月 4 17:27 mariadb
-rw-r--r-- 1 root root 246 3月 5 09:37 nsnrtmlicd
-rw-r--r-- 1 root root 200 3月 5 12:16 zabbix_agent
-rw-r--r-- 1 root root 201 3月 5 09:58 zabbix_server
[[email protected] monit.d]# pwd
/etc/monit.d
# 在keepalived文件里
配置如下
check process keepalived with matching "/usr/sbin/keepalived -D"
start program = "/usr/bin/bash -c 'systemctl start keepalived'"
stop program = "/usr/bin/bash -c 'systemctl stop keepalived'"
边栏推荐
- selenium使用———安装、测试
- 【AI4Code】《IntelliCode Compose: Code Generation using Transformer》 ESEC/FSE 2020
- Zuul网关使用
- 【AI4Code】《CoSQA: 20,000+ Web Queries for Code Search and Question Answering》 ACL 2021
- 'C:\xampp\php\ext\php_ zip. Dll'-%1 is not a valid Win32 Application Solution
- 【GCN-CTR】DC-GNN: Decoupled GNN for Improving and Accelerating Large-Scale E-commerce Retrieval WWW22
- Meta learning (meta learning and small sample learning)
- 30 sets of Chinese style ppt/ creative ppt templates
- Mirror Grid
- 【微服务~Sentinel】Sentinel降级、限流、熔断
猜你喜欢

Sword finger offer 22. the penultimate node in the linked list

氢能创业大赛 | 国家能源局科技司副司长刘亚芳:构建高质量创新体系是我国氢能产业发展的核心

Power Bi -- these skills make the report more "compelling"“
![[dark horse morning post] eBay announced its shutdown after 23 years of operation; Wei Lai throws an olive branch to Volkswagen CEO; Huawei's talented youth once gave up their annual salary of 3.6 mil](/img/d7/4671b5a74317a8f87ffd36be2b34e1.jpg)
[dark horse morning post] eBay announced its shutdown after 23 years of operation; Wei Lai throws an olive branch to Volkswagen CEO; Huawei's talented youth once gave up their annual salary of 3.6 mil

Brpc source code analysis (IV) -- bthread mechanism

Transformer变体(Routing Transformer,Linformer,Big Bird)

Knowledge maps are used to recommend system problems (mvin, Ctrl, ckan, Kred, gaeat)

Brpc source code analysis (V) -- detailed explanation of basic resource pool

面试官:“同学,你做过真实落地项目吗?”

Pycharm connects to the remote server SSH -u reports an error: no such file or directory
随机推荐
selenium使用———安装、测试
web编程(二)CGI相关
Brpc source code analysis (I) -- the main process of RPC service addition and server startup
[dark horse morning post] eBay announced its shutdown after 23 years of operation; Wei Lai throws an olive branch to Volkswagen CEO; Huawei's talented youth once gave up their annual salary of 3.6 mil
[cloud co creation] what is the role of AI in mathematics? What will be the disruptive impact on the mathematical world in the future?
Eureka注册中心开启密码认证-记录
【GCN-RS】MCL: Mixed-Centric Loss for Collaborative Filtering (WWW‘22)
【AI4Code】《Pythia: AI-assisted Code Completion System》(KDD 2019)
【高并发】我用10张图总结出了这份并发编程最佳学习路线!!(建议收藏)
异构图神经网络用于推荐系统问题(ACKRec,HFGN)
Word中的空白页,怎么也删不掉?如何操作?
Scott+scott law firm plans to file a class action against Yuga labs, or will confirm whether NFT is a securities product
硬件连接服务器 tcp通讯协议 gateway
Start with the development of wechat official account
selenium使用———xpath和模拟输入和模拟点击协作
R语言组间均值是否相同的成对比较:使用pairwise.t.test函数执行多个分组数据均值的两两成对假设检验
PHP curl post length required error setting header header
The JSP specification requires that an attribute name is preceded by whitespace
【GCN-RS】Are Graph Augmentations Necessary? Simple Graph Contrastive Learning for RS (SIGIR‘22)
NLP知识----pytorch,反向传播,预测型任务的一些小碎块笔记