Skip to content

Commit

Permalink
deploy: 27d7d75
Browse files Browse the repository at this point in the history
  • Loading branch information
mobeicanyue committed Feb 29, 2024
1 parent ae326f3 commit 3770daa
Show file tree
Hide file tree
Showing 125 changed files with 174 additions and 139 deletions.
2 changes: 1 addition & 1 deletion archives/2023/12/index.html

Large diffs are not rendered by default.

Binary file modified archives/2023/12/index.html.br
Binary file not shown.
Binary file modified archives/2023/12/index.html.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion archives/2023/12/page/2/index.html

Large diffs are not rendered by default.

Binary file modified archives/2023/12/page/2/index.html.br
Binary file not shown.
Binary file modified archives/2023/12/page/2/index.html.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion archives/2023/index.html

Large diffs are not rendered by default.

Binary file modified archives/2023/index.html.br
Binary file not shown.
Binary file modified archives/2023/index.html.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion archives/2023/page/2/index.html

Large diffs are not rendered by default.

Binary file modified archives/2023/page/2/index.html.br
Binary file not shown.
Binary file modified archives/2023/page/2/index.html.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion archives/2024/01/index.html

Large diffs are not rendered by default.

Binary file modified archives/2024/01/index.html.br
Binary file not shown.
Binary file modified archives/2024/01/index.html.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion archives/2024/02/index.html

Large diffs are not rendered by default.

Binary file modified archives/2024/02/index.html.br
Binary file not shown.
Binary file modified archives/2024/02/index.html.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion archives/2024/index.html

Large diffs are not rendered by default.

Binary file modified archives/2024/index.html.br
Binary file not shown.
Binary file modified archives/2024/index.html.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion archives/2024/page/2/index.html

Large diffs are not rendered by default.

Binary file modified archives/2024/page/2/index.html.br
Binary file not shown.
Binary file modified archives/2024/page/2/index.html.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion archives/index.html

Large diffs are not rendered by default.

Binary file modified archives/index.html.br
Binary file not shown.
Binary file modified archives/index.html.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion archives/page/2/index.html

Large diffs are not rendered by default.

Binary file modified archives/page/2/index.html.br
Binary file not shown.
Binary file modified archives/page/2/index.html.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion archives/page/3/index.html

Large diffs are not rendered by default.

Binary file modified archives/page/3/index.html.br
Binary file not shown.
Binary file modified archives/page/3/index.html.gz
Binary file not shown.
85 changes: 43 additions & 42 deletions atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link href="https://blog.ovvv.top/atom.xml" rel="self"/>

<link href="https://blog.ovvv.top/"/>
<updated>2024-02-25T14:03:07.000Z</updated>
<updated>2024-02-29T11:19:43.000Z</updated>
<id>https://blog.ovvv.top/</id>

<author>
Expand All @@ -16,12 +16,39 @@

<generator uri="https://hexo.io/">Hexo</generator>

<entry>
<title>在 ArchLinux 上安装使用 PostgreSQL</title>
<link href="https://blog.ovvv.top/posts/d2adab3b/"/>
<id>https://blog.ovvv.top/posts/d2adab3b/</id>
<published>2024-02-29T01:44:23.000Z</published>
<updated>2024-02-29T11:19:43.000Z</updated>






<summary type="html">&lt;blockquote&gt;
&lt;p&gt;本文主要介绍如何在 ArchLinux 上安装和使用 &lt;code&gt;PostgreSQL&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;我之前一直使用 &lt;code&gt;MySQL&lt;/code&gt;,最近才接触 &lt;code&gt;PostgreSQL&lt;/code&gt;。如果你也是</summary>






<category term="PostgreSQL" scheme="https://blog.ovvv.top/tags/PostgreSQL/"/>

<category term="数据库" scheme="https://blog.ovvv.top/tags/%E6%95%B0%E6%8D%AE%E5%BA%93/"/>

</entry>

<entry>
<title>编写 Umami 的 UV, PV 访问统计显示</title>
<link href="https://blog.ovvv.top/posts/4259ee82/"/>
<id>https://blog.ovvv.top/posts/4259ee82/</id>
<published>2024-02-25T11:47:17.000Z</published>
<updated>2024-02-25T14:03:07.000Z</updated>
<updated>2024-02-29T11:19:51.000Z</updated>



Expand All @@ -37,7 +64,7 @@



<category term="umami" scheme="https://blog.ovvv.top/tags/umami/"/>
<category term="Umami" scheme="https://blog.ovvv.top/tags/Umami/"/>

</entry>

Expand Down Expand Up @@ -121,7 +148,7 @@
<link href="https://blog.ovvv.top/posts/e6ee4a29/"/>
<id>https://blog.ovvv.top/posts/e6ee4a29/</id>
<published>2024-02-02T06:00:09.000Z</published>
<updated>2024-02-03T12:58:51.000Z</updated>
<updated>2024-02-29T11:19:51.000Z</updated>



Expand All @@ -136,7 +163,7 @@



<category term="1panel" scheme="https://blog.ovvv.top/tags/1panel/"/>
<category term="1Panel" scheme="https://blog.ovvv.top/tags/1Panel/"/>

<category term="Let&#39;s-Encrypt" scheme="https://blog.ovvv.top/tags/Let-s-Encrypt/"/>

Expand Down Expand Up @@ -195,7 +222,7 @@
<link href="https://blog.ovvv.top/posts/f7a090e6/"/>
<id>https://blog.ovvv.top/posts/f7a090e6/</id>
<published>2024-01-24T03:55:35.000Z</published>
<updated>2024-01-25T07:07:19.000Z</updated>
<updated>2024-02-29T11:19:51.000Z</updated>



Expand All @@ -211,11 +238,11 @@



<category term="1panel" scheme="https://blog.ovvv.top/tags/1panel/"/>
<category term="1Panel" scheme="https://blog.ovvv.top/tags/1Panel/"/>

<category term="部署" scheme="https://blog.ovvv.top/tags/%E9%83%A8%E7%BD%B2/"/>

<category term="umami" scheme="https://blog.ovvv.top/tags/umami/"/>
<category term="Umami" scheme="https://blog.ovvv.top/tags/Umami/"/>

</entry>

Expand Down Expand Up @@ -250,7 +277,7 @@
<link href="https://blog.ovvv.top/posts/9c18a796/"/>
<id>https://blog.ovvv.top/posts/9c18a796/</id>
<published>2024-01-17T12:50:59.000Z</published>
<updated>2024-01-24T14:20:14.000Z</updated>
<updated>2024-02-29T11:19:51.000Z</updated>



Expand All @@ -265,11 +292,11 @@



<category term="1panel" scheme="https://blog.ovvv.top/tags/1panel/"/>
<category term="1Panel" scheme="https://blog.ovvv.top/tags/1Panel/"/>

<category term="部署" scheme="https://blog.ovvv.top/tags/%E9%83%A8%E7%BD%B2/"/>

<category term="alist" scheme="https://blog.ovvv.top/tags/alist/"/>
<category term="Alist" scheme="https://blog.ovvv.top/tags/Alist/"/>

</entry>

Expand Down Expand Up @@ -302,7 +329,7 @@
<link href="https://blog.ovvv.top/posts/c7c2ca22/"/>
<id>https://blog.ovvv.top/posts/c7c2ca22/</id>
<published>2024-01-04T03:56:45.000Z</published>
<updated>2024-01-24T14:20:14.000Z</updated>
<updated>2024-02-29T11:19:51.000Z</updated>



Expand All @@ -320,11 +347,11 @@



<category term="1panel" scheme="https://blog.ovvv.top/tags/1panel/"/>
<category term="1Panel" scheme="https://blog.ovvv.top/tags/1Panel/"/>

<category term="部署" scheme="https://blog.ovvv.top/tags/%E9%83%A8%E7%BD%B2/"/>

<category term="uptime-kuma" scheme="https://blog.ovvv.top/tags/uptime-kuma/"/>
<category term="Uptime-kuma" scheme="https://blog.ovvv.top/tags/Uptime-kuma/"/>

</entry>

Expand Down Expand Up @@ -447,7 +474,7 @@
<link href="https://blog.ovvv.top/posts/15c02856/"/>
<id>https://blog.ovvv.top/posts/15c02856/</id>
<published>2023-12-28T07:54:04.000Z</published>
<updated>2024-02-04T07:25:17.000Z</updated>
<updated>2024-02-29T11:19:51.000Z</updated>



Expand All @@ -463,7 +490,7 @@



<category term="1panel" scheme="https://blog.ovvv.top/tags/1panel/"/>
<category term="1Panel" scheme="https://blog.ovvv.top/tags/1Panel/"/>

<category term="运维" scheme="https://blog.ovvv.top/tags/%E8%BF%90%E7%BB%B4/"/>

Expand Down Expand Up @@ -500,30 +527,4 @@

</entry>

<entry>
<title>Hexo Fluid 设置页脚</title>
<link href="https://blog.ovvv.top/posts/2422058f/"/>
<id>https://blog.ovvv.top/posts/2422058f/</id>
<published>2023-12-27T18:26:14.000Z</published>
<updated>2023-12-29T02:20:02.000Z</updated>






<summary type="html">&lt;p&gt;效果图:&lt;br&gt;&lt;img src=&quot;/posts/2422058f/set-footer.webp&quot; alt=&quot;set-footer.webp&quot;&gt;&lt;/p&gt;
&lt;h3 id=&quot;1-修改-Fluid-主题配置文件&quot;&gt;&lt;a href=&quot;#1-修改-Fluid-主题配置文件&quot;</summary>






<category term="hexo" scheme="https://blog.ovvv.top/tags/hexo/"/>

<category term="fluid" scheme="https://blog.ovvv.top/tags/fluid/"/>

</entry>

</feed>
Binary file modified atom.xml.br
Binary file not shown.
Binary file modified atom.xml.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion index.html

Large diffs are not rendered by default.

Binary file modified index.html.br
Binary file not shown.
Binary file modified index.html.gz
Binary file not shown.
49 changes: 35 additions & 14 deletions local-search.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,27 @@



<entry>
<title>在 ArchLinux 上安装使用 PostgreSQL</title>
<link href="/posts/d2adab3b/"/>
<url>/posts/d2adab3b/</url>

<content type="html"><![CDATA[<blockquote><p>本文主要介绍如何在 ArchLinux 上安装和使用 <code>PostgreSQL</code>。</p><p>我之前一直使用 <code>MySQL</code>,最近才接触 <code>PostgreSQL</code>。如果你也是 <code>PostgreSQL</code> 的新手,想必也会和我一样在安装使用的时候遇到一些问题(如安装了没有初始化数据库 启动失败等),所以我在这里记录一下我遇到的问题和解决方法。</p></blockquote><ol><li><p>安装 <code>PostgreSQL</code></p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">sudo pacman -S postgresql<br></code></pre></td></tr></table></figure><p>检查 <code>Postgresql</code> 版本</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">psql -V<br></code></pre></td></tr></table></figure></li><li><p>初始化数据库<br><code>PostgreSQL</code> 与 <code>MySQL</code> 不同,它需要初始化数据库。<br>输入以下命令。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">sudo -iu postgres<br></code></pre></td></tr></table></figure><p>这时候你会进入到 <code>postgres</code> 用户的 shell <code>[postgres]$</code> 中,执行下面的命令</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">initdb -D /var/lib/postgres/data<br></code></pre></td></tr></table></figure><p>如果没有报错,可以退出 <code>postgres</code> shell。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-built_in">exit</span><br></code></pre></td></tr></table></figure></li><li><p>启动 PostgreSQL 服务</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">sudo systemctl start postgresql<br></code></pre></td></tr></table></figure><p>确认服务是否启动成功</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">sudo systemctl status postgresql<br></code></pre></td></tr></table></figure><p>如果显示 <code>active (running)</code> 就表示服务启动成功了。</p></li><li><p>创建用户和数据库<br>PostgreSQL 还需要添加一个新的数据库用户。进入 <code>postgres</code> shell</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">sudo -iu postgres<br></code></pre></td></tr></table></figure><p>输入以下命令</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">createuser --interactive<br></code></pre></td></tr></table></figure><p>输入要增加的角色名称,新的角色是否是超级用户。<br>提示:如果创建一个与 Linux 用户名相同的 PostgreSQL 角色&#x2F;用户,就可以访问 PostgreSQL 数据库 shell,而无需指定用户登录(这非常方便)。</p></li><li><p>创建数据库<br>使用 createdb 命令,创建一个上述用户可以读写的新数据库。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">createdb myDatabaseName<br></code></pre></td></tr></table></figure></li><li><p>登录数据库<br>在 <code>postgres</code> shell 中,输入以下命令来登录数据库</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">psql<br></code></pre></td></tr></table></figure></li></ol><p><code>postgres</code> shell 中,一些常用的命令:</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><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs bash">\<span class="hljs-built_in">help</span> <span class="hljs-comment"># 列出所有命令</span><br>\l <span class="hljs-comment"># 列出所有数据库</span><br>\c database <span class="hljs-comment"># 连接到指定数据库</span><br>\<span class="hljs-built_in">du</span> <span class="hljs-comment"># 列出所有用户</span><br>\dt <span class="hljs-comment"># 列出当前数据库的所有表</span><br>\q <span class="hljs-comment"># 退出数据库</span><br></code></pre></td></tr></table></figure><br><p>参考文章:</p><section class="footnotes"><div class="footnote-list"><ol><li><span id="fn:1" class="footnote-text"><span><a href="https://wiki.archlinuxcn.org/wiki/PostgreSQL">https://wiki.archlinuxcn.org/wiki/PostgreSQL</a><a href="#fnref:1" rev="footnote" class="footnote-backref"> ↩</a></span></span></li><li><span id="fn:2" class="footnote-text"><span><a href="https://gist.github.com/NickMcSweeney/3444ce99209ee9bd9393ae6ab48599d8">https://gist.github.com/NickMcSweeney/3444ce99209ee9bd9393ae6ab48599d8</a><a href="#fnref:2" rev="footnote" class="footnote-backref"> ↩</a></span></span></li></ol></div></section>]]></content>



<tags>

<tag>PostgreSQL</tag>

<tag>数据库</tag>

</tags>

</entry>



<entry>
<title>编写 Umami 的 UV, PV 访问统计显示</title>
<link href="/posts/4259ee82/"/>
Expand All @@ -14,7 +35,7 @@

<tags>

<tag>umami</tag>
<tag>Umami</tag>

</tags>

Expand Down Expand Up @@ -90,7 +111,7 @@

<tags>

<tag>1panel</tag>
<tag>1Panel</tag>

<tag>Let&#39;s-Encrypt</tag>

Expand Down Expand Up @@ -149,11 +170,11 @@

<tags>

<tag>1panel</tag>
<tag>1Panel</tag>

<tag>部署</tag>

<tag>umami</tag>
<tag>Umami</tag>

</tags>

Expand Down Expand Up @@ -193,11 +214,11 @@

<tags>

<tag>1panel</tag>
<tag>1Panel</tag>

<tag>部署</tag>

<tag>alist</tag>
<tag>Alist</tag>

</tags>

Expand Down Expand Up @@ -235,11 +256,11 @@

<tags>

<tag>1panel</tag>
<tag>1Panel</tag>

<tag>部署</tag>

<tag>uptime-kuma</tag>
<tag>Uptime-kuma</tag>

</tags>

Expand Down Expand Up @@ -347,7 +368,7 @@

<tags>

<tag>1panel</tag>
<tag>1Panel</tag>

<tag>运维</tag>

Expand Down Expand Up @@ -416,9 +437,9 @@

<tags>

<tag>github-actions</tag>
<tag>Github-Actions</tag>

<tag>github-pages</tag>
<tag>Github-Pages</tag>

</tags>

Expand Down Expand Up @@ -485,11 +506,11 @@

<tag>hexo</tag>

<tag>github-actions</tag>
<tag>Github-Actions</tag>

<tag>github-pages</tag>
<tag>Github-Pages</tag>

<tag>github</tag>
<tag>Github</tag>

</tags>

Expand Down
Binary file modified local-search.xml.br
Binary file not shown.
Binary file modified local-search.xml.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion page/2/index.html

Large diffs are not rendered by default.

Binary file modified page/2/index.html.br
Binary file not shown.
Binary file modified page/2/index.html.gz
Binary file not shown.
Loading

0 comments on commit 3770daa

Please sign in to comment.