<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.0">Jekyll</generator><link href="https://yuquan-liu.github.io/blogs/feed.xml" rel="self" type="application/atom+xml" /><link href="https://yuquan-liu.github.io/blogs/" rel="alternate" type="text/html" /><updated>2020-12-20T17:12:45+08:00</updated><id>https://yuquan-liu.github.io/blogs/feed.xml</id><title type="html">全儿的blog</title><subtitle>每天进步一点点.</subtitle><author><name>全儿</name></author><entry><title type="html">利用Jekyll &amp;amp; Github pages搭建自己的博客</title><link href="https://yuquan-liu.github.io/blogs/intall-jekyll/" rel="alternate" type="text/html" title="利用Jekyll &amp;amp; Github pages搭建自己的博客" /><published>2020-12-19T00:00:00+08:00</published><updated>2020-12-19T00:00:00+08:00</updated><id>https://yuquan-liu.github.io/blogs/intall-jekyll</id><content type="html" xml:base="https://yuquan-liu.github.io/blogs/intall-jekyll/">&lt;h2 id=&quot;一安装jekyll-mac&quot;&gt;一、安装Jekyll (Mac)&lt;/h2&gt;

&lt;p&gt;参考：&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://jekyllrb.com/&quot;&gt;jekyll官网&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://jekyllrb.com/docs/installation/macos/&quot;&gt;Jekyll on macOS&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.jianshu.com/p/9f71e260925d&quot;&gt;Github+Jekyll 搭建个人网站详细教程&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;目的很简单，就是搭一个可以写blog的地方，按照文档的步骤做。&lt;/p&gt;

&lt;h3 id=&quot;1-安装xcode&quot;&gt;1. 安装xcode&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;xcode-select --install 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;blockquote&gt;
  &lt;p&gt;Note：在自己的机器上安装之后还是会报错，在app store中安装了xcode后OK了。&lt;/p&gt;

  &lt;p&gt;自己的mac版本是 Big Sur 11.1&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;2-install-ruby&quot;&gt;2. Install Ruby&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;ruby -v

ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;3-install-jekyll&quot;&gt;3. Install Jekyll&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;gem install --user-install bundler jekyll

# If you're using Zsh
echo 'export PATH=&quot;$HOME/.gem/ruby/2.6.0/bin:$PATH&quot;' &amp;gt;&amp;gt; ~/.zshrc

gem env
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;4-创建一个简单的jekyll-site-测试一下&quot;&gt;4. 创建一个简单的Jekyll site 测试一下&lt;/h3&gt;

&lt;p&gt;参考：&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://jekyllrb.com/docs/#instructions&quot;&gt;Jekyll Quickstart&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;## 在./myblog中创建新的jekyll site。
jekyll new myblog

## 进入myblog
cd myblog

## 构建 并在本地启动
bundle exec jekyll serve

## 在浏览器中访问 http://localhost:4000 验证。

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;5-选择一个自己喜欢的jekyll-themes&quot;&gt;5. 选择一个自己喜欢的Jekyll Themes&lt;/h3&gt;

&lt;p&gt;参考：&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://jekyllthemes.io/free&quot;&gt;Free Jekyll Themes&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/mmistakes/minimal-mistakes&quot;&gt;https://github.com/mmistakes/minimal-mistakes&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
  &lt;p&gt;我自己选择的是 &lt;a href=&quot;https://jekyllthemes.io/theme/minimal-mistakes&quot;&gt;Minimal Mistakes Jekyll theme&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;5.1 将minimal-mistakes fork到自己的账号下&lt;/p&gt;

&lt;p&gt;5.2 将自己账号下的minimal-mistakes clone到本地，创建一个分支进行修改。&lt;/p&gt;

&lt;h2 id=&quot;二修改minimal-mistakes-jekyll-theme&quot;&gt;二、修改Minimal Mistakes Jekyll theme&lt;/h2&gt;

&lt;h3 id=&quot;1-参考minimal-mistakes-quick-start-guide-自己本地仓库的新分支&quot;&gt;1. 参考Minimal Mistakes Quick-Start Guide 自己本地仓库的新分支&lt;/h3&gt;

&lt;p&gt;参考：&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/#remote-theme-method&quot;&gt;Remote theme method&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;2-修改-gemfile&quot;&gt;2 修改 Gemfile&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;source &quot;https://rubygems.org&quot;

gem &quot;github-pages&quot;, group: :jekyll_plugins
gem &quot;jekyll-include-cache&quot;, group: :jekyll_plugins

group :jekyll_plugins do
  gem &quot;jekyll-archives&quot;
end

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;3-修改-_configyml&quot;&gt;3 修改 _config.yml&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# theme                  : &quot;minimal-mistakes-jekyll&quot;
# remote_theme           : &quot;mmistakes/minimal-mistakes&quot;
remote_theme: &quot;mmistakes/minimal-mistakes@4.21.0&quot; 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;blockquote&gt;
  &lt;p&gt;参考 &lt;a href=&quot;https://mmistakes.github.io/minimal-mistakes/docs/configuration/&quot;&gt;Minimal Mistakes Configuration&lt;/a&gt; 修改自己相关的配置信息【主题、皮肤、描述、作者】。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;4-使用bundle-拉去更新bundled-gems&quot;&gt;4 使用bundle 拉去更新bundled gems&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;bundle
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;5-删除不必要的文件&quot;&gt;5 删除不必要的文件&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;.editorconfig&lt;/li&gt;
  &lt;li&gt;.gitattributes&lt;/li&gt;
  &lt;li&gt;.github&lt;/li&gt;
  &lt;li&gt;/docs&lt;/li&gt;
  &lt;li&gt;/test&lt;/li&gt;
  &lt;li&gt;CHANGELOG.md&lt;/li&gt;
  &lt;li&gt;minimal-mistakes-jekyll.gemspec&lt;/li&gt;
  &lt;li&gt;README.md&lt;/li&gt;
  &lt;li&gt;screenshot-layouts.png&lt;/li&gt;
  &lt;li&gt;screenshot.png&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
  &lt;p&gt;注意：将your-site/docs/_pages 复制到 your-site/_pages一份。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;6-修改导航链接&quot;&gt;6 修改导航链接。&lt;/h3&gt;

&lt;p&gt;_data/navigation.yml&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# main links
main:
  #- title: &quot;Quick-Start Guide&quot;
  #  url: https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/
  # - title: &quot;About&quot;
  #   url: /about/
  - title: &quot;标签&quot;
    url: /tags/
  - title: &quot;归档&quot;
    url: /year-archive/
  # - title: &quot;分类&quot;
  #   url: /categories/
  # - title: &quot;Sitemap&quot;
  #   url: /sitemap/

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;7-写个post测试一下&quot;&gt;7 写个Post测试一下。&lt;/h3&gt;
&lt;p&gt;参考:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://mmistakes.github.io/minimal-mistakes/docs/posts/&quot;&gt;Working with Posts&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;在your-site/_posts 目录中新建一个2020-12-19-test.md 的文件&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;
---
title: &quot;利用Jekyll &amp;amp; Github pages搭建自己的博客&quot;
categories:
  - test
tags:
  - test
toc: true
---

### Test

#### 测试测试一下。
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;blockquote&gt;
  &lt;p&gt;如果帖子开头有说明categories，本地生成的site中会在post前面添加一个categories对应的目录。本地启动后可以在_site目录下查看。&lt;/p&gt;

  &lt;p&gt;如果自己的帖子有照片，将存放照片的目录img存放到your-site/img下，post中使用相对路径引用，如果post指定了categories，会报找不到图片。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;8-本地启动验证一下http1270014000&quot;&gt;8 本地启动，验证一下。&lt;a href=&quot;http://127.0.0.1:4000/&quot;&gt;http://127.0.0.1:4000/&lt;/a&gt;&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;bundle exec jekyll serve
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;三书写posts提交推送到自己的github仓库中&quot;&gt;三、书写Posts，提交，推送到自己的Github仓库中。&lt;/h2&gt;

&lt;p&gt;Enjoy.&lt;/p&gt;

&lt;p&gt;坚持！&lt;/p&gt;</content><author><name>全儿</name></author><category term="Jekyll" /><summary type="html">一、安装Jekyll (Mac)</summary></entry><entry><title type="html">Kafka 常用命令</title><link href="https://yuquan-liu.github.io/blogs/kafka-commands/" rel="alternate" type="text/html" title="Kafka 常用命令" /><published>2020-12-19T00:00:00+08:00</published><updated>2020-12-19T00:00:00+08:00</updated><id>https://yuquan-liu.github.io/blogs/kafka-commands</id><content type="html" xml:base="https://yuquan-liu.github.io/blogs/kafka-commands/">&lt;p&gt;&lt;img src=&quot;../img/2020-12-19-kafka-commands-img1.png&quot; alt=&quot;截图&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;常用命令&quot;&gt;常用命令&lt;/h2&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;
kafka-consumer-groups.sh \
--bootstrap-server 127.0.0.1:9092 \
--describe \
--group check_data


kafka-consumer-groups.sh \
--bootstrap-server 127.0.0.1:9092 \
--reset-offsets \
--execute \
--to-datetime 2020-10-15T02:00:00.000 \
--group check_data \
--topic demo


kafka-consumer-groups.sh \
--bootstrap-server 127.0.0.1:9092 \
--reset-offsets \
--execute \
--to-latest  \
--group check_data \
--topic demo


nohup kafka-console-consumer.sh \
--bootstrap-server 127.0.0.1:9092 \
--topic demo \
--property print.timestamp=true \
--consumer-property group.id=check_data \
--delete-consumer-offsets &amp;gt; demo.out 2&amp;gt;&amp;amp;1 &amp;amp;




nohup kafka-console-consumer.sh \
--bootstrap-server 127.0.0.1:9092 \
--topic demo \
--delete-consumer-offsets &amp;gt; demo.out 2&amp;gt;&amp;amp;1 &amp;amp;


&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</content><author><name>全儿</name></author><category term="kafka" /><summary type="html"></summary></entry></feed>