Skip to content

Commit

Permalink
deploy: 47aa2a9
Browse files Browse the repository at this point in the history
  • Loading branch information
moralok committed Jan 29, 2024
1 parent 8ebb3e6 commit 78921e2
Show file tree
Hide file tree
Showing 54 changed files with 1,856 additions and 1,752 deletions.
4 changes: 2 additions & 2 deletions 2020/08/18/install-Docker/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<meta property="og:description" content="记录安装 Docker 的过程用于备忘,主要在新建虚拟机或重装云服务器系统时使用。">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-08-18T07:57:49.000Z">
<meta property="article:modified_time" content="2024-01-25T11:49:56.734Z">
<meta property="article:modified_time" content="2024-01-29T15:23:26.855Z">
<meta property="article:author" content="Moralok">
<meta property="article:tag" content="docker">
<meta name="twitter:card" content="summary">
Expand Down Expand Up @@ -229,7 +229,7 @@ <h1 class="post-title" itemprop="name headline">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2024-01-25 19:49:56" itemprop="dateModified" datetime="2024-01-25T19:49:56+08:00">2024-01-25</time>
<time title="修改时间:2024-01-29 23:23:26" itemprop="dateModified" datetime="2024-01-29T23:23:26+08:00">2024-01-29</time>
</span>


Expand Down
4 changes: 2 additions & 2 deletions 2020/08/19/docker-frequently-used-commands/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<meta property="og:description" content="根据个人使用经验从 Docker 官方命令行参考中选取常用的命令作为备忘清单。">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-08-19T14:33:24.000Z">
<meta property="article:modified_time" content="2024-01-25T11:49:56.734Z">
<meta property="article:modified_time" content="2024-01-29T15:23:26.855Z">
<meta property="article:author" content="Moralok">
<meta property="article:tag" content="docker">
<meta name="twitter:card" content="summary">
Expand Down Expand Up @@ -229,7 +229,7 @@ <h1 class="post-title" itemprop="name headline">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2024-01-25 19:49:56" itemprop="dateModified" datetime="2024-01-25T19:49:56+08:00">2024-01-25</time>
<time title="修改时间:2024-01-29 23:23:26" itemprop="dateModified" datetime="2024-01-29T23:23:26+08:00">2024-01-29</time>
</span>


Expand Down
120 changes: 86 additions & 34 deletions 2020/08/27/Linux-frequently-used-commands/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<meta property="og:description" content="根据个人使用经验记录常用的 Linux 命令作为备忘清单。">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-08-27T04:35:32.000Z">
<meta property="article:modified_time" content="2024-01-25T11:49:56.734Z">
<meta property="article:modified_time" content="2024-01-29T15:23:26.855Z">
<meta property="article:author" content="Moralok">
<meta property="article:tag" content="linux">
<meta name="twitter:card" content="summary">
Expand Down Expand Up @@ -229,7 +229,7 @@ <h1 class="post-title" itemprop="name headline">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2024-01-25 19:49:56" itemprop="dateModified" datetime="2024-01-25T19:49:56+08:00">2024-01-25</time>
<time title="修改时间:2024-01-29 23:23:26" itemprop="dateModified" datetime="2024-01-29T23:23:26+08:00">2024-01-29</time>
</span>


Expand All @@ -246,7 +246,7 @@ <h1 class="post-title" itemprop="name headline">
<i class="far fa-file-word"></i>
</span>
<span class="post-meta-item-text">本文字数:</span>
<span>1.1k</span>
<span>1.3k</span>
</span>
<span class="post-meta-item" title="阅读时长">
<span class="post-meta-item-icon">
Expand Down Expand Up @@ -293,68 +293,76 @@ <h2 id="文件相关"><a href="#文件相关" class="headerlink" title="文件
</tr>
</thead>
<tbody><tr>
<td><code>ls</code> </br> <code>ls -al</code><code>ll</code></td>
<td>list,列出文件信息</td>
<td><code>ls [OPTION]... [FILE]...</code> </br> <code>-a, --all, do not ignore entries starting with .</code> </br> <code>-l, use a long listing format</code></td>
<td>List information about the FILEs (the current directory by default).</td>
</tr>
<tr>
<td><code>cd</code></td>
<td>change directory,切换工作目录</td>
<td>Change the shell working directory.</td>
</tr>
<tr>
<td><code>pwd</code></td>
<td>print working directory,显示当前工作目录</td>
<td>Print the name of the current working directory.</td>
</tr>
<tr>
<td><code>touch</code></td>
<td>更新访问和修改时间为当前时间,常用于创建空文件</td>
<td><code>touch [OPTION]... FILE...</code></td>
<td>Update the access and modification times of each FILE to the current time.</td>
</tr>
<tr>
<td><code>cat</code></td>
<td>查看文件</td>
<td><code>cat [OPTION]... [FILE]...</code></td>
<td>Concatenate FILE(s) to standard output.</td>
</tr>
<tr>
<td><code>more</code></td>
<td>查看文件,可翻页</td>
<td><code>more [options] &lt;file&gt;...</code></td>
<td>A file perusal filter for CRT viewing.</td>
</tr>
<tr>
<td><code>less</code></td>
<td>查看文件,可翻页</td>
<td>opposite of more</td>
</tr>
<tr>
<td><code>tail</code></td>
<td>查看文件,末尾,可实时</td>
<td><code>tail [OPTION]... [FILE]...</code> </br> <code>-f, --follow</code> </br> <code>-n, --lines=[+]NUM</code></td>
<td>Print the last 10 lines of each FILE to standard output.</td>
</tr>
<tr>
<td><code>mkdir</code></td>
<td>创建目录</td>
<td><code>tee [OPTION]... [FILE]...</code> </br> <code>-a, --append</code></td>
<td>Copy standard input to each FILE, and also to standard output.</td>
</tr>
<tr>
<td><code>mkdir [OPTION]... DIRECTORY...</code></td>
<td>Create the DIRECTORY(ies), if they do not already exist.</td>
</tr>
<tr>
<td><code>rmdir [OPTION]... DIRECTORY...</code></td>
<td>Remove the DIRECTORY(ies), if they are empty.</td>
</tr>
<tr>
<td><code>cp</code></td>
<td>copy,复制文件</td>
<td>Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.</td>
</tr>
<tr>
<td><code>mv</code></td>
<td>move,重命名或移动文件</td>
<td>Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.</td>
</tr>
<tr>
<td><code>rm</code> </br> <code>rm -rf /usr/local/go</code>(卸载go)</td>
<td>remove,删除文件</td>
<td><code>rm [OPTION]... [FILE]...</code> </br> <code>-f, --force</code> </br> <code>-r, -R, --recursive</code></td>
<td>Remove (unlink) the FILE(s).</td>
</tr>
<tr>
<td><code>find</code></td>
<td>查找文件</td>
<td><code>find [-H] [-L] [-P] [-Olevel] [-D debugopts] [path...] [expression]</code></td>
<td>search for files in a directory hierarchy</td>
</tr>
<tr>
<td><code>vim</code></td>
<td>编辑文件</td>
<td><code>vim [arguments] [file ..]</code></td>
<td>edit specified file(s)</td>
</tr>
<tr>
<td><code>nano</code></td>
<td>编辑文件</td>
<td><code>nano [OPTIONS] [[+LINE[,COLUMN]] FILE]...</code></td>
<td>a small and friendly editor.</td>
</tr>
</tbody></table>
<h2 id="文件权限"><a href="#文件权限" class="headerlink" title="文件权限"></a>文件权限</h2><blockquote>
<p><code>r</code><code>w</code><code>x</code> 分别代表读(<code>read</code>)、写(<code>write</code>)、执行(<code>execute</code>)权限,分别对应值 <code>4</code><code>2</code><code>1</code><br><code>u</code><code>g</code><code>o</code> 分别代表拥有者(<code>owner</code>)、所属群组(<code>group</code>)、其他人(<code>other</code>),<code>a</code> 代表全部。<br><code>+</code><code>-</code> 分别代表新增和删除权限</p>
<p><code>r</code><code>w</code><code>x</code> 分别代表读(<code>read</code>)、写(<code>write</code>)、执行(<code>execute</code>)权限,分别对应值 <code>4</code><code>2</code><code>1</code><br><code>u</code><code>g</code><code>o</code> 分别代表拥有者(<code>owner</code>)、所属群组(<code>group</code>)、其他人(<code>other</code>),<code>a</code> 代表全部。<br><code>+</code><code>-</code><code>=</code> 分别代表新增、删除和指定权限</p>
</blockquote>
<table>
<thead>
Expand All @@ -372,8 +380,8 @@ <h2 id="文件权限"><a href="#文件权限" class="headerlink" title="文件
<td>change group,修改文件的所属群组</td>
</tr>
<tr>
<td><code>chmod [-R] 644 /tmp/testfile</code> </br> <code>chmod [-R] u=rwx,go=rx /tmp/testfile</code> </br> <code>chmod [-R] a-x /tmp/testfile</code></td>
<td>change mode,修改文件的权限模式</td>
<td><code>chmod [OPTION]... MODE[,MODE]... FILE...</code> </br> <code>chmod [OPTION]... OCTAL-MODE FILE...</code> </br> <code>-R, --recursive</code></td>
<td>Change the mode of each FILE to MODE. </br> Each MODE is of the form ‘[ugoa]*([-+&#x3D;]([rwxXst]*|[ugo]))+|[-+&#x3D;][0-7]+’.</td>
</tr>
</tbody></table>
<h2 id="用户"><a href="#用户" class="headerlink" title="用户"></a>用户</h2><table>
Expand All @@ -384,8 +392,12 @@ <h2 id="用户"><a href="#用户" class="headerlink" title="用户"></a>用户</
</tr>
</thead>
<tbody><tr>
<td><code>su username</code> </br> <code>su -</code>(切换root)</td>
<td>switch user,切换用户</td>
<td><code>su [options] [-] [&lt;user&gt; [&lt;argument&gt;...]]</code> </br> <code>-, -l, --login</code></td>
<td>Change the effective user ID and group ID to that of <user>. If <user> is not given, root is assumed.</td>
</tr>
<tr>
<td><code>exit</code></td>
<td>Exit the shell.</td>
</tr>
<tr>
<td><code>adduser username sudo</code>(交互式,便捷) </br> <code>useradd username</code></td>
Expand Down Expand Up @@ -471,6 +483,10 @@ <h2 id="排查问题"><a href="#排查问题" class="headerlink" title="排查
<td><code>last</code></td>
<td>显示用户最近登录信息</td>
</tr>
<tr>
<td><code>which [-a] filename ...</code></td>
<td>locate a command</td>
</tr>
</tbody></table>
<table>
<thead>
Expand Down Expand Up @@ -604,7 +620,7 @@ <h2 id="其他"><a href="#其他" class="headerlink" title="其他"></a>其他</
</thead>
<tbody><tr>
<td><code>echo $&#123;PATH&#125;</code></td>
<td>显示文本、变量</td>
<td>echo sth. <code>$PATH</code> <code>$SHELL</code></td>
</tr>
<tr>
<td><code>date</code></td>
Expand All @@ -627,6 +643,42 @@ <h2 id="其他"><a href="#其他" class="headerlink" title="其他"></a>其他</
<td>归档</td>
</tr>
</tbody></table>
<table>
<thead>
<tr>
<th>命令</th>
<th>描述</th>
</tr>
</thead>
<tbody><tr>
<td><code>systemctl daemon-reload</code></td>
<td>重新加载systemd配置</td>
</tr>
<tr>
<td><code>systemctl enable node_exporter</code></td>
<td>enable一个或多个units文件</td>
</tr>
<tr>
<td><code>systemctl disable node_exporter</code></td>
<td>disable一个或多个units文件</td>
</tr>
<tr>
<td><code>systemctl status node_exporter.service</code></td>
<td>显示一个或多个units的运行时状态</td>
</tr>
<tr>
<td><code>systemctl start node_exporter.service</code></td>
<td>启动一个或多个units</td>
</tr>
<tr>
<td><code>systemctl stop node_exporter.service</code></td>
<td>停止一个或多个units</td>
</tr>
<tr>
<td><code>systemctl restart node_exporter.service</code></td>
<td>重启一个或多个units</td>
</tr>
</tbody></table>
<h2 id="快捷键"><a href="#快捷键" class="headerlink" title="快捷键"></a>快捷键</h2><table>
<thead>
<tr>
Expand Down
4 changes: 2 additions & 2 deletions 2020/09/04/MySQL-frequently-used-commands/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<meta property="og:description" content="根据个人使用经验记录常用的 MySQL 命令作为备忘清单。">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-09-04T07:39:05.000Z">
<meta property="article:modified_time" content="2024-01-25T11:49:56.734Z">
<meta property="article:modified_time" content="2024-01-29T15:23:26.855Z">
<meta property="article:author" content="Moralok">
<meta property="article:tag" content="mysql">
<meta name="twitter:card" content="summary">
Expand Down Expand Up @@ -229,7 +229,7 @@ <h1 class="post-title" itemprop="name headline">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2024-01-25 19:49:56" itemprop="dateModified" datetime="2024-01-25T19:49:56+08:00">2024-01-25</time>
<time title="修改时间:2024-01-29 23:23:26" itemprop="dateModified" datetime="2024-01-29T23:23:26+08:00">2024-01-29</time>
</span>


Expand Down
4 changes: 2 additions & 2 deletions 2023/05/27/how-to-install-clash-on-ubuntu/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<meta property="og:description" content="本文记录了如何在 Ubuntu 上安装 Clash,以供各类程序在必要的时候使用代理。有些时候我们面对特定资源会遇到下载速度极其缓慢甚至无法下载的情况,像是使用 Github,下载 k8s 相关镜像,还有访问特定网站等等。也许有些 Dirty Hack 的方式可以短暂地绕开限制,比如修改 hosts 文件,但这并不总是见效。也许添加国内的镜像仓库地址可以满足很多人的需求,但是说不准就会遇到镜像更新">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2023-05-27T08:07:01.000Z">
<meta property="article:modified_time" content="2024-01-25T11:49:56.734Z">
<meta property="article:modified_time" content="2024-01-29T15:23:26.855Z">
<meta property="article:author" content="Moralok">
<meta property="article:tag" content="clash">
<meta property="article:tag" content="proxy">
Expand Down Expand Up @@ -230,7 +230,7 @@ <h1 class="post-title" itemprop="name headline">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2024-01-25 19:49:56" itemprop="dateModified" datetime="2024-01-25T19:49:56+08:00">2024-01-25</time>
<time title="修改时间:2024-01-29 23:23:26" itemprop="dateModified" datetime="2024-01-29T23:23:26+08:00">2024-01-29</time>
</span>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<meta property="og:description" content="本文记录了如何在 iOS 和 macOS 上安装和配置 OpenVPN 客户端,主要介绍如何编写客户端配置文件 client.ovpn 并导入。">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2023-06-07T09:04:23.000Z">
<meta property="article:modified_time" content="2024-01-25T11:49:56.734Z">
<meta property="article:modified_time" content="2024-01-29T15:23:26.855Z">
<meta property="article:author" content="Moralok">
<meta property="article:tag" content="proxy">
<meta property="article:tag" content="openvpn">
Expand Down Expand Up @@ -230,7 +230,7 @@ <h1 class="post-title" itemprop="name headline">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2024-01-25 19:49:56" itemprop="dateModified" datetime="2024-01-25T19:49:56+08:00">2024-01-25</time>
<time title="修改时间:2024-01-29 23:23:26" itemprop="dateModified" datetime="2024-01-29T23:23:26+08:00">2024-01-29</time>
</span>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<meta property="og:description" content="本文记录了如何在 Windows 10 上安装和配置 OpenVPN 服务端。">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2023-06-07T07:18:02.000Z">
<meta property="article:modified_time" content="2024-01-25T11:49:56.734Z">
<meta property="article:modified_time" content="2024-01-29T15:23:26.855Z">
<meta property="article:author" content="Moralok">
<meta property="article:tag" content="proxy">
<meta property="article:tag" content="openvpn">
Expand Down Expand Up @@ -230,7 +230,7 @@ <h1 class="post-title" itemprop="name headline">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2024-01-25 19:49:56" itemprop="dateModified" datetime="2024-01-25T19:49:56+08:00">2024-01-25</time>
<time title="修改时间:2024-01-29 23:23:26" itemprop="dateModified" datetime="2024-01-29T23:23:26+08:00">2024-01-29</time>
</span>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<meta property="og:description" content="本文记录了如何使用 OpenVPN 访问家庭内网。">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2023-06-07T14:19:17.000Z">
<meta property="article:modified_time" content="2024-01-25T11:49:56.734Z">
<meta property="article:modified_time" content="2024-01-29T15:23:26.855Z">
<meta property="article:author" content="Moralok">
<meta property="article:tag" content="proxy">
<meta property="article:tag" content="openvpn">
Expand Down Expand Up @@ -230,7 +230,7 @@ <h1 class="post-title" itemprop="name headline">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2024-01-25 19:49:56" itemprop="dateModified" datetime="2024-01-25T19:49:56+08:00">2024-01-25</time>
<time title="修改时间:2024-01-29 23:23:26" itemprop="dateModified" datetime="2024-01-29T23:23:26+08:00">2024-01-29</time>
</span>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<meta property="og:description" content="在 Ubuntu 上安装 Clash 后,Clash 通过监听本地的 7890 端口,提供代理服务。但是不同程序设置代理的方式不尽相同,并不是启动了 Clash 以及在某一处设置后,整个系统发出的 HTTP 请求都能经过代理。本文将介绍如何为终端、docker 和容器添加代理。 为终端设置代理有时候,我们需要在终端通过执行命令的方式访问网络和下载资源,比如使用 wget 和 curl。 设置 Sh">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2023-06-13T14:56:11.000Z">
<meta property="article:modified_time" content="2024-01-25T11:49:56.734Z">
<meta property="article:modified_time" content="2024-01-29T15:23:26.855Z">
<meta property="article:author" content="Moralok">
<meta property="article:tag" content="docker">
<meta property="article:tag" content="proxy">
Expand Down Expand Up @@ -230,7 +230,7 @@ <h1 class="post-title" itemprop="name headline">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2024-01-25 19:49:56" itemprop="dateModified" datetime="2024-01-25T19:49:56+08:00">2024-01-25</time>
<time title="修改时间:2024-01-29 23:23:26" itemprop="dateModified" datetime="2024-01-29T23:23:26+08:00">2024-01-29</time>
</span>


Expand Down
4 changes: 2 additions & 2 deletions 2023/06/23/how-to-install-Minikube-on-Ubuntu-20-04/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<meta property="og:description" content="环境搭建安装 Ubuntu 20.04使用 Vmware Workstation 通过 ubuntu-20.04.6-live-server-amd64.iso 安装。需要满足条件如下: 2 个或更多 CPU(2 CPU)。 2GB 可用内存(4GB)。 20GB 可用磁盘空间(30GB)。 网络连接 容器或虚拟机管理器(Docker)。 安装 Docker参考官方文档:Install Doc">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2023-06-23T13:04:20.000Z">
<meta property="article:modified_time" content="2024-01-25T11:49:56.734Z">
<meta property="article:modified_time" content="2024-01-29T15:23:26.855Z">
<meta property="article:author" content="Moralok">
<meta property="article:tag" content="minikube">
<meta name="twitter:card" content="summary">
Expand Down Expand Up @@ -229,7 +229,7 @@ <h1 class="post-title" itemprop="name headline">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2024-01-25 19:49:56" itemprop="dateModified" datetime="2024-01-25T19:49:56+08:00">2024-01-25</time>
<time title="修改时间:2024-01-29 23:23:26" itemprop="dateModified" datetime="2024-01-29T23:23:26+08:00">2024-01-29</time>
</span>


Expand Down
Loading

0 comments on commit 78921e2

Please sign in to comment.