- 博客(19)
- 资源 (5)
- 收藏
- 关注
原创 filebeat使用module收集nginx日志
1.安装filebeat客户端cat >> /etc/yum.repos.d/filebeat.repo <<EOF[filebeat-6.x]name=Elasticsearch repository for 6.x packagesbaseurl= https://artifacts.elastic.co/packages/6.x/yumgpgcheck=1gpgkey= https://artifacts.elastic.co/GPG-KEY-elasticsear
2020-07-31 14:18:09 853
原创 ELK7.11安装时的错误-elasticsearch
在安装7.11版本的elasticsearch时 多次出现 启动不了的情况 如以下日志:[root@c7-41 ~]# tailf /var/log/elasticsearch/ylm666.log [2020-07-31T07:17:14,180][INFO ][o.e.t.TransportService ] [node-1] publish_address {10.0.0.41:9300}, bound_addresses {10[2020-07-31T07:17:14,187][INFO
2020-07-31 07:26:10 442
原创 ssh连接阿里云错误:ssh_exchange_identification: read: Connection reset by peer
研究了一上午 没有头绪关闭代理 切换网络
2020-07-30 11:57:10 957
原创 一行命令安装docker和docker-compose(CentOS7)
操作系统:C- 7.7.1908 =Docker版本:当前最新版本:19.03.2docker-compose版本:当前最新版本:1.24.1安装执行以下命令(若非root账号,请自行添加sudo):yum install -y yum-utils device-mapper-persistent-data lvm2 \&& yum-config-manager \ --add-repo \ https://download.docker.com/linux/ce
2020-07-30 11:27:44 97
原创 使用Docker搭建ELK日志系统
1.目标1.收集Java日志文件,并且根据文件的不同将日志分类,比如:订单日志,客户日志等。2.日志文件多行处理2.总体架构图3.ELK组件介绍ELK 是由三部分组成的一套日志分析系统,Elasticsearch: 基于json分析搜索引擎,Elasticsearch是个开源分布式搜索引擎,它的特点有:分布式,零配置,自动发现,索引自动分片,索引副本机制,restful风格接口,多数据源,自动搜索负载等。Logstash:动态数据收集管道,Logstash是一个完全开源的工具,它可以对你的.
2020-07-30 09:35:07 915
原创 [ERROR] 2020-07-24 10:14:28.629 [[main]<beats] javapipeline - A plugin had an unrecoverable error. W
看logstash日志的时候出现了这个问题 一直很困扰 希望可以帮助到 大家[ERROR] 2020-07-24 10:14:28.629 [[main]<beats] javapipeline - A plugin had an unrecoverable error. Will restart this plugin. Pipeline_id:main Plugin: <LogStash::Inputs::Beats host=>"0.0.0.0", port=>5
2020-07-24 13:29:53 3409
原创 filebeat7.x-repo
[filebeat]# cat /etc/yum.repos.d/filebeat.repo[elastic-7.x]name=Elastic repository for 7.x packagesbaseurl=https://artifacts.elastic.co/packages/7.x/yumgpgcheck=1gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearchenabled=1autorefresh=1
2020-07-23 15:11:44 131
原创 elasticsearch启动时 bootstrap checks failed
[2020-07-23T14:56:10,152][ERROR][o.e.b.Bootstrap ] [node-1] node validation exception[1] bootstrap checks failed[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_provider
2020-07-23 15:01:45 1865
原创 git push错误failed to push some refs to的解决
问题说明当我们在github版本库中发现一个问题后,你在github上对它进行了在线的修改;或者你直接在github上的某个库中添加readme文件或者其他什么文件,但是没有对本地库进行同步。这个时候当你再次有commit想要从本地库提交到远程的github库中时就会出现push失败的问题。解决方案这个问题是因为远程库与本地库不一致造成的,那么我们把远程库同步到本地库就可以了。使用指令注意:此处我使用的是master分支,请根据自己的开发分支更换分支。git pull --rebase orig
2020-07-20 12:01:37 1567
原创 Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
[root@docker ~]# docker restart dockerCannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?启动之后 重启就好了[root@docker ~]# systemctl start docker[root@docker ~]# docker restart docker
2020-07-16 20:10:47 109
原创 docker0: iptables: No chain/target/match by that name.
转载至:https://blog.csdn.net/a1010256340/article/details/79986959启动容器时遇到这种错误 解决:百度了好多,有说没有iptables的mod的,等等,直觉搞得有点复杂,不是解决问题之法,因为之前是好用的,之前就没有这个模块,所以判定不是这类问题最终:bing上搜索到一篇英文,完美又简单解决了问题,现翻译如下,具体其他需要深入了解的深层概念,待有时间再行添加docker 服务启动的时候,docker服务会向iptables注册一个链,以便让d
2020-07-16 17:29:23 835
原创 Iterm2多窗口同时输入命令
可能很多人都遇到过类似的问题:使用 iTerm2 时打开了多个窗口,却在改动配置后需要在每个窗口依次执行 source 指令以激活改动的配置。其实,iTerm2 支持向多窗口(当前打开的所有窗口)同时输入相同的指令。只需要输入快捷键 ⌘(command) + ⇧(shift) + i。默认会跳出告警提示窗口:可以勾选 Suppress this message permanently 取消告警,并 OK 确认。这时每个窗口右上角都会出现图标表示当前已激活向所有窗口输入指令。关闭该功能的方式是再次输入快
2020-07-14 10:16:44 1497
原创 ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule:
执行docker-compose时出现了一下报错[root@docker ~]# docker-compose up -dCreating network "root_default" with the default driverERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables --wait -t nat -I DOCKER -i br-e2ac26ab6df8
2020-07-13 16:43:32 355 1
原创 docker-compose
1.从github上下载docker-compose二进制文件安装下载最新版的docker-compose文件sudo curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose若是github访问太慢,可以用daocloud下载sudo curl -L https://get.daoc
2020-07-13 16:04:58 89
原创 docker创建nginx测试页
#拉取镜像 docker pull nginx创建容器 docker run --name some-nginx -p 80:80 -v /some/content:/usr/share/nginx/html:ro -d nginx
2020-07-13 15:02:30 271
原创 REMOTE HOST IDENTIFICATION HAS CHANGED 问题解决
重置了自己的阿里云服务器后 发现 ssh????不到自己的服务器出现了一下报错yingliing:~ apple$ ssh root@12.*.*.*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
2020-07-13 13:46:11 232
原创 超牛逼释放内存的命令
1.清理前内存使用情况free -m2.开始清理 echo 1 > /proc/sys/vm/drop_caches3.清理后内存使用情况free -m4.完成!
2020-07-08 00:06:09 1113
原创 zabbix监控nginx_status
1.源码安装nginx[root@agent ~]# tar zxf nginx-1.17.9.tar.gz[root@agent ~]# cd nginx-1.17.9/[root@agent nginx-1.17.9]# ./configure --with-http_stub_status_module #加入对应的模块[root@agent nginx-1.17.9]# make && make install2.修改配置文件[root@agent conf]# c
2020-07-07 01:04:01 221
原创 another app is currently holding the yum lock;waiting for it to exit
yum提示another app is currently holding the yum lock;waiting for it to exit转载地址:http://guchenfly.iteye.com/blog/1066349可能是系统自动升级正在运行,yum在锁定状态中。可以通过强制关掉yum进程:#rm -f /var/run/yum.pid然后就可以使用yum了。...
2020-07-02 16:37:32 96
ansible一键部署.zip
2020-04-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人