当前位置:网站首页>Filebeat auto close solution
Filebeat auto close solution
2022-07-22 03:15:00 【'Xiao Wang'】
Project scenario :
adopt Elk Processing logs ,filebeat To collect logs of multiple servers
Problem description :
Start through the background start command filebeat, Found the next morning filebeat Automatically shut down
The start command is as follows :
nohup ./filebeat -e -c filebeat.yml &
Cause analysis :
When shell In the implementation of nohup After success , You also need to press any key on the keyboard on the terminal to return to shell Input command window , And then through the shell Input in exit To exit the terminal ; If in nohup After successful execution, click the close program button to close the terminal , At this time, the corresponding session, Lead to nohup The corresponding process is notified that it needs to work together shutdown, It can not play the role of calling the program to continue running in the background after closing the terminal .
Solution :
adopt exit Command exit shell client .
[root@aplid ~]# ps -ef|grep filebeat
root 2677 1 0 07:27 ? 00:00:00 ./filebeat -e -c filebeat.yml
root 2766 2729 0 07:28 pts/2 00:00:00 grep --color=auto filebeat
[root@aplid ~]# exit
边栏推荐
- jdbc 09: preparedStatement实现增删改查
- 看界面控件DevExpress WinForms——如何自定义辅助功能属性(下)
- js如何获取select下拉框的value以及文本内容
- Application of workflow engine in vivo marketing automation | engine 03
- 软件核心数据保护解决方案
- 打造一个生命周期感知的MVP架构
- mongodb上手
- 剑指 Offer 53 - I. 在排序数组中查找数字 I
- The difference between open and fopen
- Self defined multiple code of station B
猜你喜欢
ECCV 2022 | 多域长尾分布学习,解决不平衡域泛化问题
游戏中的数学之角与弧度、三角函数
[machine learning] kmeans clustering
收藏版|史上最全机器学习优化器Optimizer汇总
【论文笔记】ObjectBox: From Centers to Boxes for Anchor-Free Object Detection
策略模式改写if else 高级使用
Examples and exercises of using map and COD files to locate the crash location
Day 10 (继承、重写与super的使用)
C#加壳工具做代码加密保护
网络开发包 libpcap
随机推荐
Virbox 编译器,支持全平台全架构的源代码加密
【机器学习】降维技术-PCA
剑指 Offer 52. 两个链表的第一个公共节点
Jenkins安装并配置加速器
Lamda表达式使用
我的创作纪念日
ECCV2022 中小型矩阵的批量高效(batch-efficient)特征分解
centos7安装mysql5.7全过程及各种问题解答
C:文件加密
问一下REITs是什么呢?请问,手机开户股票开户安全吗?
Data too long for column ‘......‘ at row 2
使用VideoView实现视频轮番播放
学习基础-单词记忆
day 2
Jenkins: when building, enter the subdirectory and then perform MVN operation
CodeQL使用流程
分页助手PageHelper的使用
delete的使用
Matplotlib (VI) 3D mapping
Mongodb get started