<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[str0708的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/str0708</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; str0708]]></copyright><item><title><![CDATA[Go语言网络监控之路_blackbox_exporter]]></title><link>https://blog.youkuaiyun.com/str0708/article/details/116944893</link><guid>https://blog.youkuaiyun.com/str0708/article/details/116944893</guid><author>str0708</author><pubDate>Fri, 21 May 2021 18:47:53 +0800</pubDate><description><![CDATA[前言
前面我已经简单解释了Prometheus与Consul结合使用，今天分享一下blackbox_exporter.


# 一、Blackbox_exporter是什么？

blackbox_exporter允许通过HTTP，HTTPS，DNS，TCP和ICMP对监控目标发起黑盒测试。
这个与白盒的区别一个由内而发起，黑盒是由外而发起的探测
二、Blackbox使用步骤
1.从官网下载
blackbox_exporter下载地址
源码地址：https://github.com/prometheus/bl]]></description><category></category></item><item><title><![CDATA[Go语言网络监控之路_Consul]]></title><link>https://blog.youkuaiyun.com/str0708/article/details/116904960</link><guid>https://blog.youkuaiyun.com/str0708/article/details/116904960</guid><author>str0708</author><pubDate>Mon, 17 May 2021 19:06:10 +0800</pubDate><description><![CDATA[前言
监控首先需要解决监控目标的问题？


第二种就是现在使用的这种模式，cmdb还是不变，只是注册中心我们改用了Consul注册中心



一、Prometheus监控目标？
关于这块想详细了解的，可以去参考Prometheus官网
监控目标
以上为对应的链接地址

1.file_sd_config

前期我们采用静态文件(file_sd_config)的方式，主要的交互方式，在我们内部有一个类似cmdb的系统，通过http方式提交对应的配置文件到gitlab文件，然后有人从gitlab下载对应的版本提交]]></description><category></category></item><item><title><![CDATA[Go语言网络监控之路]]></title><link>https://blog.youkuaiyun.com/str0708/article/details/116328783</link><guid>https://blog.youkuaiyun.com/str0708/article/details/116328783</guid><author>str0708</author><pubDate>Sat, 01 May 2021 12:25:08 +0800</pubDate><description><![CDATA[文章目录前言监控相关项目Go语言入门总结

前言
本人是从Java转向Go语言开发，最近一直开发网络相关的技术，主要监控的目标终端设备、网络设备(交换机、路由器、Aruba)等

监控相关项目


prometheus
grafana
blackbox_exporter
snmp_exporter
alertmanager
fping-exporter
network_exporter
kafka
consul
pushgateway
以上是大概的涉及项目，后续也会分享本人基于Go开发的监控项目。基本思路将]]></description><category></category></item><item><title><![CDATA[Go语言网络监控之路_Prometheus]]></title><link>https://blog.youkuaiyun.com/str0708/article/details/116310837</link><guid>https://blog.youkuaiyun.com/str0708/article/details/116310837</guid><author>str0708</author><pubDate>Sat, 01 May 2021 00:35:39 +0800</pubDate><description><![CDATA[这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题，有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能，丰富你的文章UML 图表FLowchart流程图导出与导入导出导入
欢迎使用Markdown编辑器
你好！ 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Mar]]></description><category></category></item><item><title><![CDATA[glide install 在Windows 7 错误]]></title><link>https://blog.youkuaiyun.com/str0708/article/details/107219454</link><guid>https://blog.youkuaiyun.com/str0708/article/details/107219454</guid><author>str0708</author><pubDate>Thu, 09 Jul 2020 07:48:09 +0800</pubDate><description><![CDATA[最近在学习go语言，在使用包管理工具Glide中
glide install
[INFO]  --&gt; Exporting gopkg.in/tylerb/graceful.v1
[INFO]  --&gt; Exporting gopkg.in/yaml.v2
[INFO]  Replacing existing vendor dependencies
[ERROR] Unable to export dependencies to vendor directory: Error moving fil]]></description><category></category></item><item><title><![CDATA[xxl-job分布式任务调度平台]]></title><link>https://blog.youkuaiyun.com/str0708/article/details/103896337</link><guid>https://blog.youkuaiyun.com/str0708/article/details/103896337</guid><author>str0708</author><pubDate>Wed, 08 Jan 2020 19:18:49 +0800</pubDate><description><![CDATA[XXL-JOB
首选可以先去XXL-JOB官网了解下项目
本文基于XXl_JOB中2.1.2介绍,配置在easyboot中使用方法
源码仓库地址




源码仓库地址
下载




https://github.com/xuxueli/xxl-job
Download


http://gitee.com/xuxueli0323/xxl-job
Download


环境

Maven3+
Jdk...]]></description><category></category></item><item><title><![CDATA[easyboot-code-generate 自动生成代码]]></title><link>https://blog.youkuaiyun.com/str0708/article/details/102973772</link><guid>https://blog.youkuaiyun.com/str0708/article/details/102973772</guid><author>str0708</author><pubDate>Fri, 08 Nov 2019 19:30:17 +0800</pubDate><description><![CDATA[在平常工作中可能常需要编写对应的curd业务代码，为了解决这种重复的事情，用自动化思维，来彻底解决掉这类问题.
下面是自动生成代码的相关界面

生成的目录结构如下：

然后将上面对应的代码放在easy-boot项目就可以了
项目源码





后端代码
前端代码




github
https://github.com/zengfen0708/easy-boot
https://github.c...]]></description><category></category></item><item><title><![CDATA[JDK1.8 Optional关键字]]></title><link>https://blog.youkuaiyun.com/str0708/article/details/102845184</link><guid>https://blog.youkuaiyun.com/str0708/article/details/102845184</guid><author>str0708</author><pubDate>Thu, 31 Oct 2019 20:39:16 +0800</pubDate><description><![CDATA[在工作中，经常会处理各种变量，但往往会在使用变量的时候，要进行非空判断，
否则就会出现java.lang.NullPointerException。
在Java 8中提供一个更加优雅处理Null指针错误方式
//如果查询的用户为空，则直接报对应未找到用户错误
UserEntity user = userMapper.findByUsername(username)
                ...]]></description><category></category></item><item><title><![CDATA[easy-boot-web前端服务初始化]]></title><link>https://blog.youkuaiyun.com/str0708/article/details/102762349</link><guid>https://blog.youkuaiyun.com/str0708/article/details/102762349</guid><author>str0708</author><pubDate>Sat, 26 Oct 2019 23:05:51 +0800</pubDate><description><![CDATA[easy-boot-web简介
由于本人是后端开发工程师，前端我也是模仿别人写的。有写的不对的请大家不吝赐教,QQ 群号：769191321.
推荐可以先学习下vue-element-admin
https://panjiachen.gitee.io/vue-element-admin-site/zh/
前端技术栈

vue
vuex
vue-router
axios
element-ui

项目...]]></description><category></category></item><item><title><![CDATA[easy-boot后端服务初始化]]></title><link>https://blog.youkuaiyun.com/str0708/article/details/102664095</link><guid>https://blog.youkuaiyun.com/str0708/article/details/102664095</guid><author>str0708</author><pubDate>Sat, 26 Oct 2019 22:50:33 +0800</pubDate><description><![CDATA[easy-boot简介
项目基于Spring Boot 2.1.8 、Spring Security、jwt、 Mybatis、MyBatis-Plus、 xxl-job 、redis、vue、vue-element-admin。防范xss攻击.权限控制采用 RBAC，支持一键生成前后端代码
源码地址 https://blog.youkuaiyun.com/str0708/article/category/9...]]></description><category></category></item><item><title><![CDATA[easy-boot企业级快速开发脚手架]]></title><link>https://blog.youkuaiyun.com/str0708/article/details/102623254</link><guid>https://blog.youkuaiyun.com/str0708/article/details/102623254</guid><author>str0708</author><pubDate>Fri, 18 Oct 2019 20:09:18 +0800</pubDate><description><![CDATA[简介
Simple-boot是Springboot+Vue后台管理系统.

项目源码





后端代码
前端代码




github
https://github.com/zengfen0708/simple-boot
https://github.com/zengfen0708/simple-boot-manage


码云
https://github.com/zengfen0708/si...]]></description><category></category></item><item><title><![CDATA[idea 中maven出现	Unable to import maven project: See logs for details]]></title><link>https://blog.youkuaiyun.com/str0708/article/details/102492622</link><guid>https://blog.youkuaiyun.com/str0708/article/details/102492622</guid><author>str0708</author><pubDate>Thu, 10 Oct 2019 23:04:34 +0800</pubDate><description><![CDATA[使用 idea 2018， maven版本使用apache-maven-3.6.2。一直不下载jar包

出现如下错误


1) No implementation for org.apache.maven.model.path.PathTranslator was bound.
 while locating org.apache.maven.model.path.PathTranslator...]]></description><category></category></item><item><title><![CDATA[JDK 1.8(DateUtil)时间帮助类]]></title><link>https://blog.youkuaiyun.com/str0708/article/details/101176718</link><guid>https://blog.youkuaiyun.com/str0708/article/details/101176718</guid><author>str0708</author><pubDate>Sun, 22 Sep 2019 23:07:01 +0800</pubDate><description><![CDATA[看阿里java 开发规范中是这样描述的

记录JDK 1.8 时间处理的工具类。代码如下
开发工具IDEA
记得安装(lombok 插件)
package me.zf.simpleboot.common.utils;

import lombok.Value;
import lombok.experimental.UtilityClass;
import lombok.extern.slf4j.S...]]></description><category></category></item><item><title><![CDATA[Spring boot记录下常见错误]]></title><link>https://blog.youkuaiyun.com/str0708/article/details/100588333</link><guid>https://blog.youkuaiyun.com/str0708/article/details/100588333</guid><author>str0708</author><pubDate>Fri, 06 Sep 2019 23:50:55 +0800</pubDate><description><![CDATA[记录下spring boot中常用的错误
1.Spring test出现如下错误
java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your tes...]]></description><category></category></item><item><title><![CDATA[linux 安装MySql 5.7.25 操作步骤]]></title><link>https://blog.youkuaiyun.com/str0708/article/details/99677895</link><guid>https://blog.youkuaiyun.com/str0708/article/details/99677895</guid><author>str0708</author><pubDate>Fri, 16 Aug 2019 15:50:06 +0800</pubDate><description><![CDATA[记录下 mysql 5.7.25版本在linux安装过程
1 下载mysql 5.7.25
由于官网下载比较慢，暂时我这边采用的方法是通过网易云的centos镜像下载的地址是
http://mirrors.163.com/mysql/Downloads/MySQL-5.7/ 

然后手动下载 mysql-5.7.25-linux-glibc2.12-x86_64.tar.gz 文件​​​​​​​
...]]></description><category></category></item><item><title><![CDATA[Spring事务总结]]></title><link>https://blog.youkuaiyun.com/str0708/article/details/98731750</link><guid>https://blog.youkuaiyun.com/str0708/article/details/98731750</guid><author>str0708</author><pubDate>Fri, 09 Aug 2019 18:18:14 +0800</pubDate><description><![CDATA[1 什么是事务

1 保证一组操作，要么全部成功，要么全部失败

2 事务的特性

提到事务特性，肯定会想起ACID特性.

原子性(Atomicity)： 事务是最小的执行单位，不允许分割。事务的原子性确保动作要么全部完成，要么完全不起作用；

一致性(Consistency)： 执行事务前后，数据保持一致；

隔离性(Isolation)： 并发访问数据库时，一个用户的事物不被其他事物所干扰，...]]></description><category></category></item><item><title><![CDATA[nginx root和alias说明]]></title><link>https://blog.youkuaiyun.com/str0708/article/details/98944113</link><guid>https://blog.youkuaiyun.com/str0708/article/details/98944113</guid><author>str0708</author><pubDate>Fri, 09 Aug 2019 10:58:18 +0800</pubDate><description><![CDATA[记录下 nginx对应静态文件处理

在nginx中配置信息如下:

root



location /aa{
     root /usr/local/nginx;
 }

访问地址http://localhost/aa/aa1.txt  对应的直接上面root配置的路径添加aa目录下的aa1.txt文件

如果访问的不存在文件，则可以查看nginx 中error.log信息为"/usr...]]></description><category></category></item><item><title><![CDATA[记录下Nginx报504 gateway timeout]]></title><link>https://blog.youkuaiyun.com/str0708/article/details/98941444</link><guid>https://blog.youkuaiyun.com/str0708/article/details/98941444</guid><author>str0708</author><pubDate>Fri, 09 Aug 2019 10:04:16 +0800</pubDate><description><![CDATA[在工作中，在做excel导入文件，由于数据很大，导致前端浏览器报错：504 gateway timeout。由于使用nginx

1修改Nginx的服务器配置

proxy_connect_timeout 300s;

proxy_send_timeout 300s;

proxy_read_timeout 300s;

fastcgi_connect_timeout 1800;

fastcgi...]]></description><category></category></item><item><title><![CDATA[记录下linux常用网络的配置]]></title><link>https://blog.youkuaiyun.com/str0708/article/details/97656485</link><guid>https://blog.youkuaiyun.com/str0708/article/details/97656485</guid><author>str0708</author><pubDate>Mon, 29 Jul 2019 17:20:31 +0800</pubDate><description><![CDATA[查看linux端口是否被占用

1 netstat -an | grep 6379 或者netstat -tunpl |grep 6379



2 lsof -i:6379



3 使用 ls -al /proc/17096(进程名）就可以看到对应的程序目录


]]></description><category></category></item><item><title><![CDATA[maven去掉项目版本号]]></title><link>https://blog.youkuaiyun.com/str0708/article/details/95975245</link><guid>https://blog.youkuaiyun.com/str0708/article/details/95975245</guid><author>str0708</author><pubDate>Mon, 15 Jul 2019 15:48:49 +0800</pubDate><description><![CDATA[记录下maven打包jar文件名里带有版本号，比如dmeo-1.0-SNAPSHOT.jar。

如果想要去掉版本号，打开项目pom.xml文件，然后添加

&lt;build&gt;
    &lt;finalName&gt;需要打包资源文件名&lt;/finalName&gt;
&lt;/build&gt;
...]]></description><category></category></item></channel></rss>