代码拉取完成,页面将自动刷新
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>JOKING</title>
<subtitle>会当凌绝顶,一览众山小</subtitle>
<link href="/blog/atom.xml" rel="self"/>
<link href="https://jokinglove.com/blog/"/>
<updated>2020-06-22T08:47:31.326Z</updated>
<id>https://jokinglove.com/blog/</id>
<author>
<name>JOKING</name>
</author>
<generator uri="http://hexo.io/">Hexo</generator>
<entry>
<title>Centos7 网络配置</title>
<link href="https://jokinglove.com/blog/2020/01/02/others/linux/20200102-centos7%E7%BD%91%E7%BB%9C%E8%AE%BE%E7%BD%AE/"/>
<id>https://jokinglove.com/blog/2020/01/02/others/linux/20200102-centos7网络设置/</id>
<published>2020-01-01T16:00:00.000Z</published>
<updated>2020-06-22T08:47:31.326Z</updated>
<summary type="html">
<p>刚安装好的 Centos7 发现没网,用命令 <code>ip addr</code> 查看返回如下:</p>
<p><img src="https://cdn.jsdelivr.net/gh/jokinglove/cdn-assets@master/image/linux-ipaddr.png" alt></p>
</summary>
<category term="linux" scheme="https://jokinglove.com/blog/group/categories/linux/"/>
<category term="tools" scheme="https://jokinglove.com/blog/group/tags/tools/"/>
</entry>
<entry>
<title>Zookeeper 简介及核心概念</title>
<link href="https://jokinglove.com/blog/2019/12/31/others/microservice/20191231-zookeeper/"/>
<id>https://jokinglove.com/blog/2019/12/31/others/microservice/20191231-zookeeper/</id>
<published>2019-12-30T16:00:00.000Z</published>
<updated>2020-06-22T08:47:31.328Z</updated>
<summary type="html">
<h2 id="一-zookeeper简介">一、Zookeeper简介</h2>
<p>Zookeeper 是一个开源的分布式协调服务,目前由 Apache 进行维护,官网是:</p>
<p><a href="http://zookeeper.apache.org" target="_blank" rel="noopener">http://zookeeper.apache.org</a></p>
<p>zookeeper 可以用于实现分布式系统中常见的发布/订阅、负载均衡、命令服务、分布式协调/通知、集群管理、Master 选举、分布式锁和分布式队列等功能。它具有以下特性:</p>
<ul>
<li>
<p><strong>顺序一致性:</strong> 从一个客户端发起的事务请求,最终都会严格按照其发起顺序被应用到 Zookeeper 中;</p>
</li>
<li>
<p><strong>原子性:</strong> 所有事务请求的处理结果在整个集群中所有机器上都是一致的;不存在部分机器应用了该事物,而另一部分没有应用到的情况;</p>
</li>
<li>
<p><strong>单一视图:</strong> 所有客户端看到的服务端数据模型都是一致的;</p>
</li>
<li>
<p><strong>可靠性:</strong> 一旦一个事务被成功应用后,Zookeeper 可以保证客户端立即可以 读取到这个事务变更后的最新状态的数据。</p>
</summary>
<category term="IT" scheme="https://jokinglove.com/blog/group/categories/IT/"/>
<category term="大数据" scheme="https://jokinglove.com/blog/group/tags/%E5%A4%A7%E6%95%B0%E6%8D%AE/"/>
<category term="zookeeper" scheme="https://jokinglove.com/blog/group/tags/zookeeper/"/>
</entry>
<entry>
<title>Java 中的 SPI 机制</title>
<link href="https://jokinglove.com/blog/2019/09/13/others/java/20190913-java-spi/"/>
<id>https://jokinglove.com/blog/2019/09/13/others/java/20190913-java-spi/</id>
<published>2019-09-12T16:00:00.000Z</published>
<updated>2020-06-22T08:47:31.325Z</updated>
<summary type="html">
<h2 id="1-spi-简介">1、 SPI 简介</h2>
<p>SPI 全称 Service Provider Interface,是一种服务发现机制。SPI 的本质是将接口类的全限定名配置在文件中,并有服务加载器读取配置文件,加载实现类,这样可以在运行时,动态为接口替换实现类。正因为此特性,在开发中很容易通过 SPI 机制为我们的应用程序提供扩展功能。好多框架中都用到了 SPI 机制来扩展自身的功能。比如:Dubbo,Springboot 等,都是用 SPI 机制来加载实现的。</p>
</summary>
<category term="IT" scheme="https://jokinglove.com/blog/group/categories/IT/"/>
<category term="IT" scheme="https://jokinglove.com/blog/group/tags/IT/"/>
<category term="java" scheme="https://jokinglove.com/blog/group/tags/java/"/>
<category term="SPI" scheme="https://jokinglove.com/blog/group/tags/SPI/"/>
</entry>
<entry>
<title>正则表达式</title>
<link href="https://jokinglove.com/blog/2019/08/07/others/20190807-%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F/"/>
<id>https://jokinglove.com/blog/2019/08/07/others/20190807-正则表达式/</id>
<published>2019-08-06T16:00:00.000Z</published>
<updated>2020-06-22T08:47:31.323Z</updated>
<summary type="html">
<p><img src="https://cdn.jsdelivr.net/gh/jokinglove/cdn-assets@master/image/20190807133154.png" alt="七夕快乐"></p>
</summary>
<category term="IT" scheme="https://jokinglove.com/blog/group/categories/IT/"/>
<category term="IT" scheme="https://jokinglove.com/blog/group/tags/IT/"/>
</entry>
<entry>
<title>Web Service 相关概念和总结</title>
<link href="https://jokinglove.com/blog/2019/07/10/others/20190617-webservice/"/>
<id>https://jokinglove.com/blog/2019/07/10/others/20190617-webservice/</id>
<published>2019-07-09T16:00:00.000Z</published>
<updated>2020-06-22T08:47:31.323Z</updated>
<summary type="html">
<h2 id="web-service-相关概念和总结">Web Service 相关概念和总结</h2>
<h3 id="一-序言">一. 序言</h3>
<p>序言什么的都不重要……</p>
<h3 id="二-web-service-是什么">二、Web Service 是什么</h3>
<p><font color="red">Web Service 是一种跨编程语言和跨操作系统平台的远程调用技术</font></p>
<p>所谓跨编程语言和跨操作平台,就是说服务端程序采用 java 编写,客户端程序则可以采用其他的编程语言编写,反之亦然!跨操作系统平台是指服务端程序和客户端程序可以在不同的操作系统上运行。</p>
<p>远程调用,是指一台计算机 a 上的一个程序可以调用到另外一台计算机 b 上的一个对象的方法。</p>
</summary>
<category term="IT" scheme="https://jokinglove.com/blog/group/categories/IT/"/>
<category term="IT" scheme="https://jokinglove.com/blog/group/tags/IT/"/>
<category term="webservice" scheme="https://jokinglove.com/blog/group/tags/webservice/"/>
<category term="java" scheme="https://jokinglove.com/blog/group/tags/java/"/>
</entry>
<entry>
<title>spring boot 中的坑</title>
<link href="https://jokinglove.com/blog/2019/06/25/others/microservice/spring-boot-notice/"/>
<id>https://jokinglove.com/blog/2019/06/25/others/microservice/spring-boot-notice/</id>
<published>2019-06-24T16:00:00.000Z</published>
<updated>2020-06-22T08:47:31.328Z</updated>
<summary type="html">
</summary>
<category term="IT" scheme="https://jokinglove.com/blog/group/categories/IT/"/>
<category term="springboot" scheme="https://jokinglove.com/blog/group/tags/springboot/"/>
</entry>
<entry>
<title>Kubernetes-创建集群</title>
<link href="https://jokinglove.com/blog/2019/06/14/kubernates/4.1%E5%88%9B%E5%BB%BAkubernetes%E9%9B%86%E7%BE%A4/"/>
<id>https://jokinglove.com/blog/2019/06/14/kubernates/4.1创建kubernetes集群/</id>
<published>2019-06-13T16:00:00.000Z</published>
<updated>2020-06-22T08:47:31.323Z</updated>
<summary type="html">
<h2 id="使用-minikube-创建一个集群">使用 Minikube 创建一个集群</h2>
<h4 id="目标">目标</h4>
<ul>
<li>了解什么是 Kubernetes 集群</li>
<li>了解什么是 Minikube</li>
<li>使用在线终端启动 Kubernetes 集群</li>
</ul>
</summary>
<category term="kubernetes" scheme="https://jokinglove.com/blog/group/categories/kubernetes/"/>
<category term="IT" scheme="https://jokinglove.com/blog/group/tags/IT/"/>
<category term="kubernetes" scheme="https://jokinglove.com/blog/group/tags/kubernetes/"/>
<category term="集群" scheme="https://jokinglove.com/blog/group/tags/%E9%9B%86%E7%BE%A4/"/>
</entry>
<entry>
<title>Kubernetes-实操</title>
<link href="https://jokinglove.com/blog/2019/06/12/kubernates/4.2%E6%93%8D%E4%BD%9C%E7%BB%83%E4%B9%A0/"/>
<id>https://jokinglove.com/blog/2019/06/12/kubernates/4.2操作练习/</id>
<published>2019-06-11T16:00:00.000Z</published>
<updated>2020-06-22T08:47:31.323Z</updated>
<summary type="html">
<h3 id="实操练习">实操练习</h3>
<hr>
<figure class="highlight zsh"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br></pre></td><td class="code"><pre><span class="line">Kubernetes Bootcamp Terminal</span><br><span class="line"></span><br><span class="line">$ minikube version</span><br><span class="line">minikube version: v0.34.1</span><br><span class="line">$ minikube start</span><br><span class="line">o minikube v0.34.1 on linux (amd64)</span><br><span class="line">&gt; Configuring <span class="built_in">local</span> host environment ...</span><br><span class="line">&gt; Creating none VM (CPUs=2, Memory=2048MB, Disk=20000MB) ...</span><br><span class="line">- <span class="string">"minikube"</span> IP address is 172.17.0.7</span><br><span class="line">- Configuring Docker as the container runtime ...</span><br><span class="line">- Preparing Kubernetes environment ...</span><br><span class="line">@ Downloading kubeadm v1.13.3</span><br><span class="line">@ Downloading kubelet v1.13.3</span><br><span class="line">- Pulling images required by Kubernetes v1.13.3 ...</span><br><span class="line">- Launching Kubernetes v1.13.3 using kubeadm ...</span><br><span class="line">- Configuring cluster permissions ...</span><br><span class="line">- Verifying component health .....</span><br><span class="line">+ kubectl is now configured to use <span class="string">"minikube"</span></span><br><span class="line">= Done! Thank you <span class="keyword">for</span> using minikube!</span><br><span class="line">$</span><br><span class="line">$ kubectl version</span><br><span class="line">Client Version: version.Info&#123;Major:<span class="string">"1"</span>, Minor:<span class="string">"13"</span>, GitVersion:<span class="string">"v1.13.3"</span>, GitCommit:<span class="string">"721bfa751924da8d1680787490c54b9179b1fed0"</span>, GitTreeState:<span class="string">"clean"</span>, BuildDate:<span class="string">"2019-02-01T20:08:12Z"</span>, GoVersion:<span class="string">"go1.11.5"</span>, Compiler:<span class="string">"gc"</span>, Platform:<span class="string">"linux/amd64"</span>&#125;</span><br><span class="line">Server Version: version.Info&#123;Major:<span class="string">"1"</span>, Minor:<span class="string">"13"</span>, GitVersion:<span class="string">"v1.13.3"</span>, GitCommit:<span class="string">"721bfa751924da8d1680787490c54b9179b1fed0"</span>, GitTreeState:<span class="string">"clean"</span>, BuildDate:<span class="string">"2019-02-01T20:00:57Z"</span>, GoVersion:<span class="string">"go1.11.5"</span>, Compiler:<span class="string">"gc"</span>, Platform:<span class="string">"linux/amd64"</span>&#125;</span><br><span class="line">$</span><br><span class="line">$ kubectl cluster-info</span><br><span class="line">Kubernetes master is running at https://172.17.0.7:8443</span><br><span class="line">KubeDNS is running at https://172.17.0.7:8443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy</span><br><span class="line"></span><br><span class="line">To further debug and diagnose cluster problems, use <span class="string">'kubectl cluster-info dump'</span>.</span><br><span class="line">$</span><br><span class="line">$ kubectl get nodes</span><br><span class="line">NAME STATUS ROLES AGE VERSION</span><br><span class="line">minikube Ready master 100s v1.13.3</span><br></pre></td></tr></table></figure>
</summary>
<category term="kubernetes" scheme="https://jokinglove.com/blog/group/categories/kubernetes/"/>
<category term="IT" scheme="https://jokinglove.com/blog/group/tags/IT/"/>
<category term="kubernetes" scheme="https://jokinglove.com/blog/group/tags/kubernetes/"/>
</entry>
<entry>
<title>Linux 实用命令</title>
<link href="https://jokinglove.com/blog/2019/06/11/others/linux/20190610-linux%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4/"/>
<id>https://jokinglove.com/blog/2019/06/11/others/linux/20190610-linux常用命令/</id>
<published>2019-06-10T16:00:00.000Z</published>
<updated>2020-06-22T08:47:31.326Z</updated>
<summary type="html">
<h3 id="linux-实用命令">Linux 实用命令</h3>
<ul>
<li>awk</li>
</ul>
<blockquote>
<p>awk 是一种处理文本文件的语言</p>
</blockquote>
</summary>
<category term="IT" scheme="https://jokinglove.com/blog/group/categories/IT/"/>
<category term="linux" scheme="https://jokinglove.com/blog/group/tags/linux/"/>
</entry>
<entry>
<title>Kubernetes-基础模块</title>
<link href="https://jokinglove.com/blog/2019/06/10/kubernates/4.kubernetes%E7%9A%84%E5%9F%BA%E7%A1%80%E6%A8%A1%E5%9D%97/"/>
<id>https://jokinglove.com/blog/2019/06/10/kubernates/4.kubernetes的基础模块/</id>
<published>2019-06-09T16:00:00.000Z</published>
<updated>2020-06-22T08:47:31.323Z</updated>
<summary type="html">
<h3 id="kubernetes-的基础模块">Kubernetes 的基础模块</h3>
<ol>
<li>
<p><a href="https://kubernetes.cn/zh/docs/tutorials/kubernetes-basics/cluster-intro/" target="_blank" rel="noopener">创建一个 Kubernetes 集群</a></p>
</li>
<li>
<p><a href="https://kubernetes.cn/zh/docs/tutorials/kubernetes-basics/deploy-intro/" target="_blank" rel="noopener">部署应用程序</a></p>
</li>
<li>
<p><a href="https://kubernetes.cn/zh/docs/tutorials/kubernetes-basics/explore-intro/" target="_blank" rel="noopener">应用程序探索</a></p>
</li>
<li>
<p><a href="https://kubernetes.cn/zh/docs/tutorials/kubernetes-basics/expose-intro/" target="_blank" rel="noopener">应用外部可见</a></p>
</li>
<li>
<p><a href="https://kubernetes.cn/zh/docs/tutorials/kubernetes-basics/scale-intro/" target="_blank" rel="noopener">应用可扩展</a></p>
</li>
<li>
<p><a href="https://kubernetes.cn/zh/docs/tutorials/kubernetes-basics/update-intro/" target="_blank" rel="noopener">应用更新</a></p>
</li>
</ol>
</summary>
<category term="kubernetes" scheme="https://jokinglove.com/blog/group/categories/kubernetes/"/>
<category term="IT" scheme="https://jokinglove.com/blog/group/tags/IT/"/>
<category term="kubernetes" scheme="https://jokinglove.com/blog/group/tags/kubernetes/"/>
</entry>
<entry>
<title>Kubernetes-设计架构</title>
<link href="https://jokinglove.com/blog/2019/06/02/kubernates/3.kubernetes-%E8%AE%BE%E8%AE%A1%E6%9E%B6%E6%9E%84/"/>
<id>https://jokinglove.com/blog/2019/06/02/kubernates/3.kubernetes-设计架构/</id>
<published>2019-06-01T16:00:00.000Z</published>
<updated>2020-06-22T08:47:31.322Z</updated>
<summary type="html">
<h2 id="kubernetes-设计架构">Kubernetes 设计架构</h2>
<p>Kubernetes 集群包含有节点代理 kubelet 和 Master 组件 (APIs, scheduler, etc),一切都基于分布式存储系统。下面这张图是 Kubernetes 的结构图。</p>
<p><img src="https://raw.githubusercontent.com/JokingLove/NoteBook/master/image/20190604094531.png" alt="架构图"></p>
<p><a href="https://raw.githubusercontent.com/kubernetes/kubernetes/release-1.2/docs/design/architecture.png" target="_blank" rel="noopener">查看高清无码图</a></p>
</summary>
<category term="kubernetes" scheme="https://jokinglove.com/blog/group/categories/kubernetes/"/>
<category term="IT" scheme="https://jokinglove.com/blog/group/tags/IT/"/>
<category term="kubernetes" scheme="https://jokinglove.com/blog/group/tags/kubernetes/"/>
</entry>
<entry>
<title>Kubernetes-认识 Kubernetes</title>
<link href="https://jokinglove.com/blog/2019/05/31/kubernates/2.kubernetes-%E8%AE%A4%E8%AF%86%20Kubernetes/"/>
<id>https://jokinglove.com/blog/2019/05/31/kubernates/2.kubernetes-认识 Kubernetes/</id>
<published>2019-05-30T16:00:00.000Z</published>
<updated>2020-06-22T08:47:31.322Z</updated>
<summary type="html">
<h2 id="认识-kubernetes?">认识 Kubernetes?</h2>
<ul>
<li>
<p><strong><a href="#tedian"> Kubernetes 具有如下特点:</a></strong></p>
<ul>
<li><strong><a href="#">准备好 开始?</a></strong></li>
</ul>
</li>
<li>
<p><strong><a href>为什么是容器?</a></strong></p>
<ul>
<li><strong><a href="#">为什么我们需要 Kubernetes,它能做什么?</a></strong></li>
<li><strong><a href="#">为什么 Kubernetes 是一个平台?</a></strong></li>
<li><strong><a href="#">Kubernetes 不是什么:</a></strong></li>
<li><strong><a href>Kubernetes 是什么意思?K8s?</a></strong></li>
</ul>
</li>
</ul>
<p>Kubernetes 是一个跨主机集群的 <a href>开源的容器调度平台,它可以自动化应用容器的部署、扩展和操作</a> ,提供以容器为中心的基础架构。</p>
<p>使用 Kubernetes , 你可以快速高效地相应客户的需求:</p>
<ul>
<li>快速、可预测地部署你的应用程序</li>
<li>拥有即时扩展应用程序的能力</li>
<li>不影响现有业务的情况下,无缝的发布新功能</li>
<li>优化硬件资源,降低成本</li>
</ul>
<p>我们的目标是构建一个软件和工具的生态系统,以减轻你在公共云或私有云运行应用程序的负担。</p>
</summary>
<category term="kubernetes" scheme="https://jokinglove.com/blog/group/categories/kubernetes/"/>
<category term="IT" scheme="https://jokinglove.com/blog/group/tags/IT/"/>
<category term="kubernetes" scheme="https://jokinglove.com/blog/group/tags/kubernetes/"/>
</entry>
<entry>
<title>Kubernetes-概念</title>
<link href="https://jokinglove.com/blog/2019/05/28/kubernates/1.kubernetes-%E6%A6%82%E5%BF%B5/"/>
<id>https://jokinglove.com/blog/2019/05/28/kubernates/1.kubernetes-概念/</id>
<published>2019-05-27T16:00:00.000Z</published>
<updated>2020-06-22T08:47:31.322Z</updated>
<summary type="html">
<h2 id="概念">概念</h2>
<p>概念部分可以帮助你了解 Kubernetes 的各个组成部分以及 Kubernetes 用来表示集群的一些抽象概念,并帮助你更加深入的理解 Kubernetes 是如何工作的。</p>
<ul>
<li><a href="#%E6%A6%82%E8%BF%B0"><strong>概述</strong></a></li>
<li>[ <strong>Kubernetes 对象</strong> ](# Kubernetes 对象)</li>
<li>[<strong>Kubernetes 控制面</strong>](#Kubernetes 控制面)</li>
<li><a href="#%E6%8E%A5%E4%B8%8B%E6%9D%A5"><strong>接下来</strong></a></li>
</ul>
</summary>
<category term="kubernetes" scheme="https://jokinglove.com/blog/group/categories/kubernetes/"/>
<category term="IT" scheme="https://jokinglove.com/blog/group/tags/IT/"/>
<category term="kubernetes" scheme="https://jokinglove.com/blog/group/tags/kubernetes/"/>
</entry>
<entry>
<title>Kafka Introduction</title>
<link href="https://jokinglove.com/blog/2019/05/19/others/kafka/20190612-kafka-introduction/"/>
<id>https://jokinglove.com/blog/2019/05/19/others/kafka/20190612-kafka-introduction/</id>
<published>2019-05-18T16:00:00.000Z</published>
<updated>2020-06-22T08:47:31.325Z</updated>
<summary type="html">
<h2 id="introduction">Introduction</h2>
<p><br>
<strong>Apache Kafka 是一个分布式流处理平台。这到底意味着什么呢?</strong></p>
<p>流处理平台的三种特性:</p>
<ol>
<li>可以让你发布和订阅流式记录。这一方面与消息队列或者企业消息系统类似。</li>
<li>可以存储流式记录,并且有较好的容错性。</li>
<li>可以在流式记录产生时就进行处理。</li>
</ol>
<p>Kafka 适合什么样的场景?</p>
<p>它可以用于两大类别的应用:</p>
<ol>
<li>构造实时流数据管道,它可以在系统或应用之间可靠地获取数据。(相当于 message queue)</li>
<li>构建实时流式应用程序,对这些流式数据进行转换或者影响。(就是流处理,通过 Kafka stream topic 和 topic 之间内部进行变化)</li>
</ol>
</summary>
<category term="IT" scheme="https://jokinglove.com/blog/group/categories/IT/"/>
<category term="IT" scheme="https://jokinglove.com/blog/group/tags/IT/"/>
<category term="Kafka" scheme="https://jokinglove.com/blog/group/tags/Kafka/"/>
<category term="大数据" scheme="https://jokinglove.com/blog/group/tags/%E5%A4%A7%E6%95%B0%E6%8D%AE/"/>
</entry>
<entry>
<title>MongoDb 常用方法</title>
<link href="https://jokinglove.com/blog/2019/05/17/others/database/20190624-mongo%E5%B8%B8%E7%94%A8%E6%96%B9%E6%B3%95/"/>
<id>https://jokinglove.com/blog/2019/05/17/others/database/20190624-mongo常用方法/</id>
<published>2019-05-16T16:00:00.000Z</published>
<updated>2020-06-22T08:47:31.324Z</updated>
<summary type="html">
<h3 id="mongodb-常用方法">MongoDb 常用方法</h3>
<ol>
<li>
<p>$regx: 值匹配</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">&#123; &lt;field&gt;: &#123; <span class="variable">$regex</span>: /pattern/, <span class="variable">$options</span>: <span class="string">'&lt;options&gt;'</span> &#125; &#125;</span><br><span class="line">&#123; &lt;field&gt;: &#123; <span class="variable">$regex</span>: <span class="string">'pattern'</span>, <span class="variable">$options</span>: <span class="string">'&lt;options&gt;'</span> &#125; &#125;</span><br><span class="line">&#123; &lt;field&gt;: &#123; <span class="variable">$regex</span>: /pattern/&lt;options&gt; &#125; &#125;</span><br></pre></td></tr></table></figure>
<p>$options:</p>
<ul>
<li>i: 忽略大小写</li>
<li>m: For patterns that include anchors (i.e. <code>^</code> for the start, <code>$</code> for the end),If the pattern contains no anchors or if the string value has no newline characters (e.g. <code>\n</code>), the <code>m</code> option has no effect.(对于新的一行,m是不起作用的)</li>
<li>x:“Extended” capability to ignore all white space characters in the <a href="https://docs.mongodb.com/manual/reference/operator/query/regex/#op._S_regex" target="_blank" rel="noopener"><code>$regex</code></a>pattern unless escaped or included in a character class.</li>
<li>Allows the dot character (i.e. <code>.</code>) to match all characters <em>including</em> newline characters. For an example, see <a href="https://docs.mongodb.com/manual/reference/operator/query/regex/#regex-dot-new-line" target="_blank" rel="noopener">Use the . Dot Character to Match New Line</a>.</li>
</ul>
<p>example:</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">&#123; name: &#123; <span class="variable">$regex</span>: /acme.*corp/, <span class="variable">$options</span>: <span class="string">"si"</span> &#125; &#125;</span><br></pre></td></tr></table></figure>
</summary>
<category term="IT" scheme="https://jokinglove.com/blog/group/categories/IT/"/>
<category term="Mongo" scheme="https://jokinglove.com/blog/group/tags/Mongo/"/>
<category term="Database" scheme="https://jokinglove.com/blog/group/tags/Database/"/>
</entry>
<entry>
<title>Mongodb 中两个操作 Reduce & Aggregate</title>
<link href="https://jokinglove.com/blog/2019/05/16/others/database/20190619-mongodb-reduce&aggregate/"/>
<id>https://jokinglove.com/blog/2019/05/16/others/database/20190619-mongodb-reduce&aggregate/</id>
<published>2019-05-15T16:00:00.000Z</published>
<updated>2020-06-22T08:47:31.324Z</updated>
<summary type="html">
<h2 id="mongodb-中两个操作-reduce-aggregate">Mongodb 中两个操作 Reduce &amp; Aggregate</h2>
<h3 id="map-reduce">Map Reduce</h3>
<p>Map-Reduce 是一种计算模型,简单的说就是将大批量的工作(数据) 分解 (MAP) 执行,然后再将结果合并成最终的结果 (REDUCE)。</p>
<p>MongoDB 提供的 Map-Reduce 非常灵活,对于大规模数据分析也相当实用。</p>
<hr>
</summary>
<category term="IT" scheme="https://jokinglove.com/blog/group/categories/IT/"/>
<category term="Mongo" scheme="https://jokinglove.com/blog/group/tags/Mongo/"/>
<category term="Database" scheme="https://jokinglove.com/blog/group/tags/Database/"/>
</entry>
<entry>
<title>markdown 常用语法汇总</title>
<link href="https://jokinglove.com/blog/2019/05/15/others/tools/20190605-markdown%E5%B8%B8%E7%94%A8%E8%AF%AD%E6%B3%95/"/>
<id>https://jokinglove.com/blog/2019/05/15/others/tools/20190605-markdown常用语法/</id>
<published>2019-05-14T16:00:00.000Z</published>
<updated>2020-06-22T08:47:31.329Z</updated>
<summary type="html">
<h3 id="markdown-常用语法汇总">markdown 常用语法汇总</h3>
<p><u>这些字有下划线</u></p>
<p>我有上标<sup>上标</sup></p>
<p>我有下标<sub>下标</sub></p>
<p><strong>加粗1</strong></p>
</summary>
<category term="上古神器" scheme="https://jokinglove.com/blog/group/categories/%E4%B8%8A%E5%8F%A4%E7%A5%9E%E5%99%A8/"/>
<category term="tools" scheme="https://jokinglove.com/blog/group/tags/tools/"/>
</entry>
<entry>
<title>Kafka (a distributed streaming platform)</title>
<link href="https://jokinglove.com/blog/2019/05/14/others/kafka/20190524-spring-kafka/"/>
<id>https://jokinglove.com/blog/2019/05/14/others/kafka/20190524-spring-kafka/</id>
<published>2019-05-13T16:00:00.000Z</published>
<updated>2020-06-22T08:47:31.325Z</updated>
<summary type="html">
<h2 id="kafka-a-distributed-streaming-platform">Kafka (a distributed streaming platform)</h2>
<h4 id="kafka-的三大功能:">Kafka 的三大功能:</h4>
<ul>
<li>
<p>发布 &amp; 订阅</p>
<p>类似于一个消息系统,读写流式的数据。</p>
</li>
<li>
<p>处理</p>
<p>编写可扩展的流处理应用程序,用于实时时间相应的场景。</p>
</li>
<li>
<p>存储</p>
<p>安全的将流式的数据存储在一个分布式、有副本备份、容错的集群。</p>
</li>
</ul>
</summary>
<category term="IT" scheme="https://jokinglove.com/blog/group/categories/IT/"/>
<category term="IT" scheme="https://jokinglove.com/blog/group/tags/IT/"/>
<category term="Kafka" scheme="https://jokinglove.com/blog/group/tags/Kafka/"/>
<category term="大数据" scheme="https://jokinglove.com/blog/group/tags/%E5%A4%A7%E6%95%B0%E6%8D%AE/"/>
</entry>
<entry>
<title>Spring Boot 整合 ElasticSearch 入门</title>
<link href="https://jokinglove.com/blog/2019/05/13/others/microservice/20190524-spring-boot-elasticsearch/"/>
<id>https://jokinglove.com/blog/2019/05/13/others/microservice/20190524-spring-boot-elasticsearch/</id>
<published>2019-05-12T16:00:00.000Z</published>
<updated>2020-06-22T08:47:31.327Z</updated>
<summary type="html">
<h3 id="spring-boot-整合-elasticsearch-入门">Spring Boot 整合 ElasticSearch 入门</h3>
<p> 利用 spring data elasticsearch 模块来对 elasticsearch 进行基础的增删改查,elasticsearch 利用 docker 的方式启动运行。</p>
<h4 id="启动-elasticsearch">启动 elasticsearch</h4>
<h6 id="下载-elasticsearch-的-docker-镜像:">下载 elasticsearch 的 docker 镜像:</h6>
<figure class="highlight zsh"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker pull docker.elastic.co/elasticsearch/elasticsearch:6.7.2</span><br></pre></td></tr></table></figure>
<h6 id="以开发模式运行-elasticsearch-的-docker-容器:">以开发模式运行 elasticsearch 的 docker 容器:</h6>
<figure class="highlight zsh"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker run -p 9200:9200 -p 9300:9300 -e <span class="string">"discovery.type=single-node"</span> docker.elastic.co/elasticsearch/elasticsearch:6.7.2</span><br></pre></td></tr></table></figure>
</summary>
<category term="IT" scheme="https://jokinglove.com/blog/group/categories/IT/"/>
<category term="IT" scheme="https://jokinglove.com/blog/group/tags/IT/"/>
<category term="大数据" scheme="https://jokinglove.com/blog/group/tags/%E5%A4%A7%E6%95%B0%E6%8D%AE/"/>
<category term="springboot" scheme="https://jokinglove.com/blog/group/tags/springboot/"/>
<category term="ES" scheme="https://jokinglove.com/blog/group/tags/ES/"/>
<category term="搜索" scheme="https://jokinglove.com/blog/group/tags/%E6%90%9C%E7%B4%A2/"/>
</entry>
<entry>
<title>美团系统监控工具 Cat 入门</title>
<link href="https://jokinglove.com/blog/2019/05/12/others/microservice/20190512-cat/"/>
<id>https://jokinglove.com/blog/2019/05/12/others/microservice/20190512-cat/</id>
<published>2019-05-11T16:00:00.000Z</published>
<updated>2020-06-22T08:47:31.327Z</updated>
<summary type="html">
<h2 id="美团系统监控工具-cat-入门">美团系统监控工具 Cat 入门</h2>
<h3 id="cat-简介">Cat 简介</h3>
<p>CAT (Center Application Tracking) ,是基于 Java 开发的分布式实时监控系统。CAT 在基础存储、高性能童心、大规模在线访问、服务治理、实时监控、容器化及集群智能调度等领域提供业界领先的、统一的解决方案。CAT 目前在美团的产品定位是应用层的统一监控组件,基本接入了美团的所有核心应用,在中间件 (RPC、数据库、缓存、MQ等) 框架中得到广泛的应用,为各业务线提供系统的性能指标、健康状况、实时告警等。</p>
<h3 id="cat-的产品价值">Cat 的产品价值</h3>
<ul>
<li>减少线上问题的发现时间</li>
<li>减少问题故障的定位时间</li>
<li>辅助应用程序的优化工具</li>
</ul>
</summary>
<category term="IT" scheme="https://jokinglove.com/blog/group/categories/IT/"/>
<category term="IT" scheme="https://jokinglove.com/blog/group/tags/IT/"/>
<category term="cat" scheme="https://jokinglove.com/blog/group/tags/cat/"/>
<category term="监控" scheme="https://jokinglove.com/blog/group/tags/%E7%9B%91%E6%8E%A7/"/>
<category term="microservice" scheme="https://jokinglove.com/blog/group/tags/microservice/"/>
</entry>
</feed>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。