<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[qq_40898875的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/qq_40898875</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; qq_40898875]]></copyright><item><title><![CDATA[如何能让Linux服务器对shell 终端 + sftp 文件传输长期保活]]></title><link>https://blog.csdn.net/qq_40898875/article/details/163305325</link><guid>https://blog.csdn.net/qq_40898875/article/details/163305325</guid><author>qq_40898875</author><pubDate>Wed, 29 Jul 2026 14:43:42 +0800</pubDate><description><![CDATA[第3条：重启 ssh 服务，加载 sshd_config 里面的保活配置。第1条：写入内核保活参数（复制整段直接敲）第2条：让 sysctl 配置立刻生效。]]></description><category></category></item><item><title><![CDATA[内网环境下，使用Docker安装Elasticsearch分词器插件]]></title><link>https://blog.csdn.net/qq_40898875/article/details/161752711</link><guid>https://blog.csdn.net/qq_40898875/article/details/161752711</guid><author>qq_40898875</author><pubDate>Sat, 06 Jun 2026 20:42:52 +0800</pubDate><description><![CDATA[注意：分词器版本要和Elasticsearch完全一致。注意：在Docker容器内安装。注意：在宿主机复制。]]></description><category></category></item><item><title><![CDATA[内网环境下，使用Docker安装Elasticsearch]]></title><link>https://blog.csdn.net/qq_40898875/article/details/161750524</link><guid>https://blog.csdn.net/qq_40898875/article/details/161750524</guid><author>qq_40898875</author><pubDate>Sat, 06 Jun 2026 16:41:26 +0800</pubDate><description><![CDATA[文件拷贝到内网机器后。]]></description><category></category></item><item><title><![CDATA[Linux服务器离线安装Docker]]></title><link>https://blog.csdn.net/qq_40898875/article/details/161727229</link><guid>https://blog.csdn.net/qq_40898875/article/details/161727229</guid><author>qq_40898875</author><pubDate>Fri, 05 Jun 2026 20:00:33 +0800</pubDate><description><![CDATA[【代码】Linux服务器离线安装docker。]]></description><category></category></item><item><title><![CDATA[python的matplotlib包绘图，基本参数梳理]]></title><link>https://blog.csdn.net/qq_40898875/article/details/136525124</link><guid>https://blog.csdn.net/qq_40898875/article/details/136525124</guid><author>qq_40898875</author><pubDate>Thu, 07 Mar 2024 09:50:56 +0800</pubDate><description><![CDATA[【代码】python的matplotlib包绘图，基本参数梳理。]]></description><category></category></item><item><title><![CDATA[使用OpenSSL生成自签名SSL/TLS证书和私钥]]></title><link>https://blog.csdn.net/qq_40898875/article/details/135207456</link><guid>https://blog.csdn.net/qq_40898875/article/details/135207456</guid><author>qq_40898875</author><pubDate>Mon, 25 Dec 2023 19:42:25 +0800</pubDate><description><![CDATA[使用OpenSSL生成自签名SSL/TLS证书和私钥]]></description><category></category></item><item><title><![CDATA[Windows下代码量统计方法]]></title><link>https://blog.csdn.net/qq_40898875/article/details/129815379</link><guid>https://blog.csdn.net/qq_40898875/article/details/129815379</guid><author>qq_40898875</author><pubDate>Tue, 28 Mar 2023 14:29:14 +0800</pubDate><description><![CDATA[第一步，先安装node、strawberry，注意安装时strawberry如果安装不上，可以将其拷贝至C盘再安装，安装时直接下一步即可；第二步，用node -v和cloc -v查看是否安装成功；第三步，使用以下命令进行代码统计。]]></description><category></category></item><item><title><![CDATA[Windows和Linux常用HASH算法使用命令]]></title><link>https://blog.csdn.net/qq_40898875/article/details/129125268</link><guid>https://blog.csdn.net/qq_40898875/article/details/129125268</guid><author>qq_40898875</author><pubDate>Mon, 20 Feb 2023 15:29:13 +0800</pubDate><description><![CDATA[Windows和Linux常用hash算法使用命令]]></description><category></category></item><item><title><![CDATA[[Prometheus] Grafana的下载、运行以及配合Prometheus平台的简单使用]]></title><link>https://blog.csdn.net/qq_40898875/article/details/124653569</link><guid>https://blog.csdn.net/qq_40898875/article/details/124653569</guid><author>qq_40898875</author><pubDate>Sun, 08 May 2022 20:15:01 +0800</pubDate><description><![CDATA[Grafana的下载、运行以及配合Prometheus平台的简单使用


下载 Grafana
下载链接：https://grafana.com/grafana/download
可选择Linux、Windows或者Mac版本



安装运行
a. 解除锁定

b. 解压后的目录结构

c. 查看配置文件custom.ini
​	注意：当我们打开grafana-enterprise-8.5.2.windows-amd64\grafana-8.5.2\conf	文件夹时，是没有custom.ini文件的，因此]]></description><category></category></item><item><title><![CDATA[[Prometheus] Prometheus的下载安装和运行介绍]]></title><link>https://blog.csdn.net/qq_40898875/article/details/124648394</link><guid>https://blog.csdn.net/qq_40898875/article/details/124648394</guid><author>qq_40898875</author><pubDate>Sun, 08 May 2022 15:09:48 +0800</pubDate><description><![CDATA[Prometheus的下载安装和运行介绍


下载prometheus
下载链接：https://prometheus.io/download/
​可选择Linux和Windows版本



安装运行（windows版安装）
解压后的目录结构

查看配置文件prometheus.yml

主要配置项中文翻译
# my global config
global:
  scrape_interval: 15s # 设置抓取数据时间间隔为15s，不设置的话默认一分钟
  evaluation_interval: ]]></description><category></category></item><item><title><![CDATA[[Prometheus] 访问Grafana服务端报If you‘re seeing this Grafana has failed to load its application files]]></title><link>https://blog.csdn.net/qq_40898875/article/details/122839260</link><guid>https://blog.csdn.net/qq_40898875/article/details/122839260</guid><author>qq_40898875</author><pubDate>Wed, 09 Feb 2022 12:08:57 +0800</pubDate><description><![CDATA[访问Grafana服务端报If you’re seeing this Grafana has failed to load its application files
浏览器版本
chrome 7X
问题
访问Grafana服务端时报以下问题
If you’re seeing this Grafana has failed to load its application files


This could be caused by your reverse proxy settings.


If you]]></description><category></category></item><item><title><![CDATA[[Java] Integer对象在-128~127之间的==比较]]></title><link>https://blog.csdn.net/qq_40898875/article/details/118635284</link><guid>https://blog.csdn.net/qq_40898875/article/details/118635284</guid><author>qq_40898875</author><pubDate>Sat, 10 Jul 2021 14:55:24 +0800</pubDate><description><![CDATA[描述： Integer对象在-128~127之间的==比较，以及该范围之外的比较情况
运行代码：
public class Test {
    public static void main(String[] args) {
        Integer a = 5, b = 5, c = 132, d = 132;
        System.out.println(a == b);
        System.out.println(c == d);
    }
}

结果打印：

a与b用==]]></description><category></category></item><item><title><![CDATA[[Java] Synchronized关键字在使用时需要注意的情况]]></title><link>https://blog.csdn.net/qq_40898875/article/details/118060969</link><guid>https://blog.csdn.net/qq_40898875/article/details/118060969</guid><author>qq_40898875</author><pubDate>Sat, 19 Jun 2021 23:49:29 +0800</pubDate><description><![CDATA[一、不要使用常量作为锁，比如String
以String为例，字符串是存在于常量池当中的，比如下面两个字符串a和b，这两个字符串的内容一样，他们的地址就会相同，
String a = "abc";
String b = "abc";

用下面的代码来说明，定义两个字符串a和b，在main方法中创建两个线程 ，分别取名为thread1和thread2；
首先，thread1线程会先执行，此时由于对象锁a是处于未被占有状态，因此thread1会直接拿到锁，并执行打印；
之后，thread2线程执行，因为对象锁b]]></description><category></category></item><item><title><![CDATA[[Spring] spring源码构建教程，每步都有截图展示，清晰明了]]></title><link>https://blog.csdn.net/qq_40898875/article/details/117830511</link><guid>https://blog.csdn.net/qq_40898875/article/details/117830511</guid><author>qq_40898875</author><pubDate>Sat, 12 Jun 2021 01:54:40 +0800</pubDate><description><![CDATA[前言
此教程已在进行多次实操，每次都能构建成功，本人在教程中给出截图比较多，应该还比较清晰明了；
愿想要学习spring源码的小伙伴们都能构建成功；
从构建开始到成功一共有9个步骤（1-9）；
新建java项目并引用新构建的spring框架，此处用了3个步骤（10-12）；
第一步： 下载源码
Github链接：https://github.com/spring-projects/spring-framework
我这里下载的版本是spring 5.1.x，直接下载的源码zip包[外链图片转存失败,源站可能]]></description><category></category></item><item><title><![CDATA[[Java] 为何用自定义的类作hashmap的key时需要重写hashcode方法和equals方法]]></title><link>https://blog.csdn.net/qq_40898875/article/details/117385871</link><guid>https://blog.csdn.net/qq_40898875/article/details/117385871</guid><author>qq_40898875</author><pubDate>Sat, 29 May 2021 15:02:26 +0800</pubDate><description><![CDATA[主题： 为何用自定义的类作hashmap的key时需要重写hashcode方法和equals方法
Object类的中的hashcode方法和equals方法
Java中所有的类都是Object类的子类，Object中自带的hashcode方法，就是通过计算内存地址转换一个整数实现的，是一个native方法，返回值是int类型：
public native int hashCode();

Object中自带的equals方法，从源码中可以看出，就是将比较与被比较对象用==进行比较，用的还是比较hash值的方]]></description><category></category></item><item><title><![CDATA[[Java] @JSONField注解常用的使用场景总结]]></title><link>https://blog.csdn.net/qq_40898875/article/details/117001888</link><guid>https://blog.csdn.net/qq_40898875/article/details/117001888</guid><author>qq_40898875</author><pubDate>Tue, 18 May 2021 22:00:43 +0800</pubDate><description><![CDATA[应用场景： 当我们在与前端进行交互时，前端想要的字段与我们提供的字段名不同，这时候一种解决方案是修改实体类，但如果该实体类应用的比较多，那改起来的代价太大，因此，可以使用注解@JSONField来实现替换效果，用法如下：
@JSONField(name = "size_new")
private int size;

1. JSON内容与实体类，@JSONField常规写法
JSON（与下述JSON字符串内容一致）
{
    size: 5,
    weight: 10,
    colour: "re]]></description><category></category></item><item><title><![CDATA[[Java] 使用stream().distinct()方式实现对List元素的去重处理]]></title><link>https://blog.csdn.net/qq_40898875/article/details/116602719</link><guid>https://blog.csdn.net/qq_40898875/article/details/116602719</guid><author>qq_40898875</author><pubDate>Mon, 10 May 2021 18:11:48 +0800</pubDate><description><![CDATA[实现去重

先将list转成流，使用list.stream()方法；
对流实现去重，使用list.stream().distinct()方法；
将去重后的list流，再转回list；

方法
distinct()方法: 用于过滤集合流中的所有不同元素，返回一个由给定流中的不同元素组成的流，对于有序流，保留在相遇顺序中最先出现的元素。对于无序流，没有稳定性保证。
例子
public static void main(String[] args) {
        List&lt;String&gt; lis]]></description><category></category></item><item><title><![CDATA[[Java] 使用两条不同的URL请求同一个接口]]></title><link>https://blog.csdn.net/qq_40898875/article/details/116464903</link><guid>https://blog.csdn.net/qq_40898875/article/details/116464903</guid><author>qq_40898875</author><pubDate>Thu, 06 May 2021 22:34:07 +0800</pubDate><description><![CDATA[描述： 该方式能够使用两条不同的URL，请求同一个接口
URL1: /pathOne/request
URL2: /pathTwo/request
方式一
@RestController
@RequestMapping("/{pathOne|pathTwo}")
public class DoubleURL {
    @RequestMapping("/request")
    public String selectURL(){
        return "success";
    }
}

方]]></description><category></category></item><item><title><![CDATA[[Java] 使用HttpClient实现文件下载]]></title><link>https://blog.csdn.net/qq_40898875/article/details/115803255</link><guid>https://blog.csdn.net/qq_40898875/article/details/115803255</guid><author>qq_40898875</author><pubDate>Sat, 17 Apr 2021 22:34:34 +0800</pubDate><description><![CDATA[使用HttpClient实现文件下载
服务端：


服务端是一个SpringBoot服务，写了一个接口用于客户端请求文件，客户端携带参数（文件名fileName）使用Get方式请求；


服务端获取到文件名后将与本地仓库地址E:/downloadRepository/组成绝对路径，获取文件转换成流，最后利用OutputStream对象将缓冲区的数据送到客户端；


缓冲区大小也可设置为一个定值（如：1024*1024），然后再循环写入输出流对象；


import org.springframework.w]]></description><category></category></item><item><title><![CDATA[[Spring] 最简单遍历Spring Bean方式]]></title><link>https://blog.csdn.net/qq_40898875/article/details/115741818</link><guid>https://blog.csdn.net/qq_40898875/article/details/115741818</guid><author>qq_40898875</author><pubDate>Thu, 15 Apr 2021 22:24:58 +0800</pubDate><description><![CDATA[最简单遍历Spring Bean方式
描述： 采用注入ApplicationContext对象的方式，获取所有的Bean名称，并以list方式返回；
实现代码
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.web.bind.annotation.RequestMapp]]></description><category></category></item></channel></rss>