<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>云上笔记</title>
        <link>https://tangly1024.com/</link>
        <description>记录互联网的技术大杂烩</description>
        <lastBuildDate>Mon, 21 Sep 2026 18:54:17 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>zh-CN</language>
        <copyright>All rights reserved 2026, Brill</copyright>
        <item>
            <title><![CDATA[Mikrotik RouterOS 路由器 CloudFlare DDNS 动态解析脚本(IPv4/IPv6)]]></title>
            <link>https://tangly1024.com/article/routeros-ddns-cloudflare</link>
            <guid>https://tangly1024.com/article/routeros-ddns-cloudflare</guid>
            <pubDate>Fri, 13 Mar 2020 00:00:00 GMT</pubDate>
            <description><![CDATA[在 RouterOS 添加一个脚本执行后将公网IPv4/IPv6解析到指定域名，该脚本改自 github 的 viritt/cloudflare_update.script 相比原版本增加IPv6解析以及双栈的支持]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-a59fd5dcd7da4751beefbc6a6e3a37f7"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><blockquote class="notion-quote notion-block-e4e611d339c9446486dfad4567492d27"><div>在 RouterOS 添加一个脚本执行后将公网IPv4/IPv6解析到指定域名，该脚本改自 github 的 viritt/cloudflare_update.script 相比原版本增加IPv6解析以及双栈的支持。</div></blockquote><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-87b086f6dafa4b548b31e451440ae9cc" data-id="87b086f6dafa4b548b31e451440ae9cc"><span><div id="87b086f6dafa4b548b31e451440ae9cc" class="notion-header-anchor"></div><a class="notion-hash-link" href="#87b086f6dafa4b548b31e451440ae9cc" title="前提条件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">前提条件</span></span></h3><div class="notion-text notion-block-47b4f83d57144150b568b988b19bee80"><b>注意：脚本是基于RouterOS v6.46.4 编写的，大于小于此版本都可能导致一些命令问题</b></div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-0af9c0d0c17840eeb6756a93617dc2e9" data-id="0af9c0d0c17840eeb6756a93617dc2e9"><span><div id="0af9c0d0c17840eeb6756a93617dc2e9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#0af9c0d0c17840eeb6756a93617dc2e9" title="确认正确的公网地址"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">确认正确的公网地址</span></span></h4><div class="notion-text notion-block-89dca18a43384f07b27c1eb15757ef2f"><b>IPv4验证方法：</b></div><div class="notion-text notion-block-b44b7bc4b3934e69ac23894398a1325b">脚本提取 (WinBox --&gt; IP --&gt; Address List) 内指定接口的IP地址进行解析</div><div class="notion-text notion-block-e8e4d4daa9614e36a65fdf98a4d8c0ce">ROS终端运行：<code class="notion-inline-code">/ip address get [/ip address find interface=接口名称] address</code></div><div class="notion-text notion-block-5d930777bcd946f18c4aff482b6963c1"><b>IPv6验证方法：</b></div><div class="notion-text notion-block-8aef03ffdedd486689ae78285cf983b0">脚本提取 DHCPv6 Client 获取的 Prefix 并加上指定的IPv6后缀进行解析</div><div class="notion-text notion-block-c103a0e585744e26be3c637f796d9c2a">ROS终端运行：<code class="notion-inline-code">/ipv6 dhcp-client get [find interface=接口名称] status</code></div><div class="notion-text notion-block-6fcfb3dd08de4117aee79688c8041d44">查看读出的数据是否为公网地址，</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-9c7a13a1fdce441abc2013d4de644b76" data-id="9c7a13a1fdce441abc2013d4de644b76"><span><div id="9c7a13a1fdce441abc2013d4de644b76" class="notion-header-anchor"></div><a class="notion-hash-link" href="#9c7a13a1fdce441abc2013d4de644b76" title="提前新建子域名"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">提前新建子域名</span></span></h4><div class="notion-text notion-block-2953de6b6d2b4857aa79b65b9106d1b3">在 CloudFlare 新建需要解析的子域名，若需要解析IPv6
和双栈还需要建立IPv4同名子域名和单独子域名，单独子域名用于IPv6是否更新的判断</div><ol start="1" class="notion-list notion-list-numbered notion-block-e9b1c900b6ae49a6b43a4ea285cc53d4" style="list-style-type:decimal"><li><a class="notion-link" href="http://ipv4.hscbook.com/" target="_blank" rel="noopener noreferrer">ipv4.hscbook.com</a>（A记录）</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-eff3deaa1d5543398594882fe58533b3" style="list-style-type:decimal"><li><a class="notion-link" href="http://ipv4.hscbook.com/" target="_blank" rel="noopener noreferrer">ipv4.hscbook.com</a>（AAAA记录）</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-142b35db825e4fd1b703c85a51bf104e" style="list-style-type:decimal"><li><a class="notion-link" href="http://ipv6.hscbook.com/" target="_blank" rel="noopener noreferrer">ipv6.hscbook.com</a>（AAAA记录）</li></ol><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-260c9cf6bab340d19d846b4a304332ce" data-id="260c9cf6bab340d19d846b4a304332ce"><span><div id="260c9cf6bab340d19d846b4a304332ce" class="notion-header-anchor"></div><a class="notion-hash-link" href="#260c9cf6bab340d19d846b4a304332ce" title="建立脚本"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">建立脚本</span></span></h3><div class="notion-text notion-block-e17d95ca0aaf49e3a4cff8ba97490a44">使用 WinBox 客户端连接至 RouterOS ；依次 System --&gt; Scripts 进入脚本列表，新建一个名为<code class="notion-inline-code">DDNS_CloudFlare</code> 脚本，将下面内容复制粘贴。</div><div class="notion-text notion-block-c240e9ed581e49e6a71578fc58d10c66">&lt;ins/&gt;</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-adf05b278bed4c31833da3a188ea6d46" data-id="adf05b278bed4c31833da3a188ea6d46"><span><div id="adf05b278bed4c31833da3a188ea6d46" class="notion-header-anchor"></div><a class="notion-hash-link" href="#adf05b278bed4c31833da3a188ea6d46" title="配置脚本"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">配置脚本</span></span></h3><div class="notion-text notion-block-0a9333a68e3447c7bd885f905cfabe40">在 CloudFlare 域名主页的最下面 API 处</div><ol start="1" class="notion-list notion-list-numbered notion-block-e5829898e7044c6a8dfc0a90b6e66502" style="list-style-type:decimal"><li>将 Zone ID 填入脚本的 CFzoneid 变量</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-9e1f1e00278142a4b7eb0fa687e7e760" style="list-style-type:decimal"><li>点击 Get your API token 获取 API token 填入脚本的 CFtkn 变量</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-a041695719084154b00224748c873c59" style="list-style-type:decimal"><li>将 CloudFlare 的邮箱账号填入 CFemail 变量</li></ol><div class="notion-text notion-block-2d81a0c1a85d4be2b3b110736f93c3f3">根据三项信息套入 <code class="notion-inline-code">url -X GET \\&quot;&lt;https://api.cloudflare.com/client/v4/zones/$CFzoneid/dns_records\\&gt;&quot; -H \\&quot;X-Auth-Email: $CFemail\\&quot; -H \\&quot;X-Auth-Key: $CFtkn\\&quot; -H \\&quot;Content-Type: application/json\\&quot; | python -mjson.tool&quot;</code> 并在 linux 终端中运行可取得子域名的 CFid 并填入 CFdomainid 变量</div><div class="notion-text notion-block-e710bd26c1c04358bbb619dd5675b4bd"><b>其他变量根据注释以实际情况自行修改后点击 Run Script 运行脚本测试，查看系统日志无报错即可</b></div><div class="notion-text notion-block-b8df315290f64c38af7f54adce9ba209">&lt;ins/&gt;</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-eb98436241fe41f2816222d9f792e722" data-id="eb98436241fe41f2816222d9f792e722"><span><div id="eb98436241fe41f2816222d9f792e722" class="notion-header-anchor"></div><a class="notion-hash-link" href="#eb98436241fe41f2816222d9f792e722" title="创建任务计划"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">创建任务计划</span></span></h3><div class="notion-text notion-block-73c8b769598a435891b38a4ec21c033c">修改好脚本后使用 WinBox 客户端连接至 RouterOS ；依次 System --&gt; Scheduler进入任务计划列表新建一个任务计划间隔时间建议为 TTL 变量的两倍，内容为 <code class="notion-inline-code">/system script run &quot;DDNS_CloudFlare&quot;;</code></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-aedc887f8dd346eba022c76a12081b0f" data-id="aedc887f8dd346eba022c76a12081b0f"><span><div id="aedc887f8dd346eba022c76a12081b0f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#aedc887f8dd346eba022c76a12081b0f" title="END"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">END</span></span></h3><div class="notion-text notion-block-d712be5681354d39a63d178035822c80">参考文档：<a class="notion-link" href="https://wiki.mikrotik.com/wiki/Main_Page" target="_blank" rel="noopener noreferrer">MikroTik Wiki</a></div><div class="notion-text notion-block-48cccf596fb74825b471a5ed0cfa7001">原脚本：<a class="notion-link" href="https://gist.github.com/viritt/605173d0b9d8cce433be34539db9923f#file-cloudflare_update-script-L39" target="_blank" rel="noopener noreferrer">Automatic script for Mikrotik RouterOS updating record on CloudFlare.</a></div><div class="notion-text notion-block-226ec2746f964c0a9c870138587ccbd4">获取 CFid 可使用 API 调试工具，例：<a class="notion-link" href="http://postwoman.cn/index.do#/article/detail?projectId=help&amp;moduleId=155032424248009000006&amp;type=ARTICLE&amp;id=155037947655301000051" target="_blank" rel="noopener noreferrer">Postwoman(ApiDebug)</a></div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[一劳永逸，搭建ISSO开源评论系统全攻略教程]]></title>
            <link>https://tangly1024.com/article/isso-comment</link>
            <guid>https://tangly1024.com/article/isso-comment</guid>
            <pubDate>Mon, 05 Jun 2017 00:00:00 GMT</pubDate>
            <description><![CDATA[自己的评论系统才是最好的评论系统，前段时间多说关闭了评论系统切换到网易云跟帖毕竟是Beta项目反垃圾系统太严格了，动不动就审核失败而且自己还看不到被系统删除的留言，而且目前在云跟帖的群里的管理员说目前该项目正在暂停状态意思云跟帖也随时会关闭，果断自搭建了个留言系统，综合实验了各个开源系统最终ISSO的系统最稳定，唯一的遗憾就是没有后台系统]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-52f2fb2e7c1248918e7bfa64bc2c74d5"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><blockquote class="notion-quote notion-block-d1a8e0e9fbcd4d3fa0cb9ec4e02ea653"><div>自己的评论系统才是最好的评论系统，前段时间多说关闭了评论系统切换到网易云跟帖毕竟是Beta项目反垃圾系统太严格了，动不动就审核失败而且自己还看不到被系统删除的留言，而且目前在云跟帖的群里的管理员说目前该项目正在暂停状态意思云跟帖也随时会关闭，果断自搭建了个留言系统，综合实验了各个开源系统最终ISSO的系统最稳定，唯一的遗憾就是没有后台系统</div></blockquote><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-de29da3032864c9c8f4d9d01e70cd08b" data-id="de29da3032864c9c8f4d9d01e70cd08b"><span><div id="de29da3032864c9c8f4d9d01e70cd08b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#de29da3032864c9c8f4d9d01e70cd08b" title="准备环境"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">准备环境</span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-f0b31c4068814749a87a518f6802b968" style="list-style-type:decimal"><li>支持Python的环境</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-46d1b817a38e4cba8333a3b51d628942" style="list-style-type:decimal"><li>支持STMP的邮件服务器</li></ol><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-49ebce314ddc412bac9b95046ba27f65" data-id="49ebce314ddc412bac9b95046ba27f65"><span><div id="49ebce314ddc412bac9b95046ba27f65" class="notion-header-anchor"></div><a class="notion-hash-link" href="#49ebce314ddc412bac9b95046ba27f65" title="环境依赖"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">环境依赖</span></span></h3><div class="notion-text notion-block-d61f9e96b660452991d81da9792fe562">摘抄官方（需要翻墙）<a class="notion-link" href="https://posativ.org/isso/docs/install/" target="_blank" rel="noopener noreferrer">https://posativ.org/isso/docs/install/</a></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-70ca401c91c74885835f6289a4e28f5a" data-id="70ca401c91c74885835f6289a4e28f5a"><span><div id="70ca401c91c74885835f6289a4e28f5a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#70ca401c91c74885835f6289a4e28f5a" title="安装ISSO (PIP包)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">安装ISSO (PIP包)</span></span></h3><div class="notion-text notion-block-b8661eda9ee94b28a8eb56f0173beaa3">先安装 Python 的 PIP包管理工具
<a class="notion-link" href="http://www.pip-installer.org/en/latest/" target="_blank" rel="noopener noreferrer">http://www.pip-installer.org/en/latest/</a></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-42712855832348f2b7d88ff4cba8f9d7" data-id="42712855832348f2b7d88ff4cba8f9d7"><span><div id="42712855832348f2b7d88ff4cba8f9d7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#42712855832348f2b7d88ff4cba8f9d7" title="创建配置文件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">创建配置文件</span></span></h3><div class="notion-text notion-block-b75f38e3ca1d4174be7cf45119e72530">安装目录下有默认的配置文件 <code class="notion-inline-code">defaults.ini</code> 把它拷贝到任意目录。直接修改也是可以的。
参数详解 <a class="notion-link" href="https://posativ.org/isso/docs/configuration/server/" target="_blank" rel="noopener noreferrer">https://posativ.org/isso/docs/configuration/server/</a>
创建服务端配置文件 <code class="notion-inline-code">nano /home/isso.conf</code></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-8e8d0007394e449bab003aa1f850a3bb" data-id="8e8d0007394e449bab003aa1f850a3bb"><span><div id="8e8d0007394e449bab003aa1f850a3bb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#8e8d0007394e449bab003aa1f850a3bb" title="在网站引用评论框"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">在网站引用评论框</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-2dedf6b73e05490484f7494bfd0b2ee5" data-id="2dedf6b73e05490484f7494bfd0b2ee5"><span><div id="2dedf6b73e05490484f7494bfd0b2ee5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2dedf6b73e05490484f7494bfd0b2ee5" title="引用ISSO-JS文件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">引用ISSO-JS文件</span></span></h4><div class="notion-text notion-block-ebe03671c22946c9b63215eb22ddc99b"><b>在页尾 </b><code class="notion-inline-code"><b>footer</b></code><b> 添加处引用JS文件和客户端参数设置</b></div><div class="notion-text notion-block-beadf333a1d048f7a83050d09e58bc97">参数详解 <a class="notion-link" href="https://posativ.org/isso/docs/configuration/client/" target="_blank" rel="noopener noreferrer">https://posativ.org/isso/docs/configuration/client/</a>
|-- 是否使用自带的CSS样式表
|--&gt; <code class="notion-inline-code">data-isso-css=&quot;true&quot;</code>
|-- 默认语言
|--&gt; <code class="notion-inline-code">data-isso-lang=&quot;ru&quot;</code>
|-- 是否允许回复自己（与服务端同步）
|--&gt; <code class="notion-inline-code">data-isso-reply-to-self=&quot;false&quot;</code>
|-- 是否必须输入名称
|--&gt; <code class="notion-inline-code">data-isso-require-author=&quot;false&quot;</code>
|-- 是否必须输入邮箱
|--&gt; <code class="notion-inline-code">data-isso-require-email=&quot;false&quot;</code>
|-- 一页内最多显示多少评论
|--&gt; <code class="notion-inline-code">data-isso-max-comments-top=&quot;10&quot;</code>
|-- 回复嵌套最大数
|--&gt; <code class="notion-inline-code">data-isso-max-comments-nested=&quot;5&quot;</code>
|-- 显示“显示评论”的阈值
|--&gt; <code class="notion-inline-code">data-isso-reveal-on-click=&quot;5&quot;</code>
|-- 是否使用像素头像
|--&gt; <code class="notion-inline-code">data-isso-avatar=&quot;true&quot;</code>
|-- 头像的背景颜色
|--&gt; <code class="notion-inline-code">data-isso-avatar-bg=&quot;#f0f0f0&quot;</code>
|-- 头像的颜色库（最多8个）
|--&gt; <code class="notion-inline-code">data-isso-avatar-fg=&quot;#9abf88 #5698c4 #e279a3 #9163b6 ...&quot;</code>
|-- 开启评论的支持和反对
|--&gt; <code class="notion-inline-code">data-isso-vote=&quot;true&quot;</code>
|-- 支持和反对的显示算法
|--&gt; <code class="notion-inline-code">data-vote-levels=&quot;&quot;</code></div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-d7050899f18e4bdea64139ad15bda569" data-id="d7050899f18e4bdea64139ad15bda569"><span><div id="d7050899f18e4bdea64139ad15bda569" class="notion-header-anchor"></div><a class="notion-hash-link" href="#d7050899f18e4bdea64139ad15bda569" title="插入评论框与评论数"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">插入评论框与评论数</span></span></h4><div class="notion-text notion-block-1d6d92b214d94edeaa1f037541512851">使用下面两个标签的前提是必须**<a class="notion-link" href="notion://www.notion.so/rbook/2882d6f320be467aa2960b46ab0e919d?v=736d29094ea441e3b2e41cb81009ce83&amp;p=52f2fb2e7c1248918e7bfa64bc2c74d5#%E5%BC%95%E7%94%A8ISSO-JS%E6%96%87%E4%BB%B6">引用JS文件</a>**
在文章页的评论框处插入ISSO评论框</div><div class="notion-text notion-block-b67c78fdb09147b19ceabbb62070d004">在列表页和其他的任意位置插入评论记数</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-b6b8c0c3d8cd4d72ae4c6422133dd72d" data-id="b6b8c0c3d8cd4d72ae4c6422133dd72d"><span><div id="b6b8c0c3d8cd4d72ae4c6422133dd72d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#b6b8c0c3d8cd4d72ae4c6422133dd72d" title="启动ISSO"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">启动ISSO</span></span></h3><div class="notion-text notion-block-d8d497ca94ba49e18ef99168ee25757e">输入：<code class="notion-inline-code">isso -c /home/isso.conf run</code></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-b93c5782c6aa4eceb9ab05af8459bf70" data-id="b93c5782c6aa4eceb9ab05af8459bf70"><span><div id="b93c5782c6aa4eceb9ab05af8459bf70" class="notion-header-anchor"></div><a class="notion-hash-link" href="#b93c5782c6aa4eceb9ab05af8459bf70" title="自启动ISSO脚本"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">自启动ISSO脚本</span></span></h3><div class="notion-text notion-block-171d0b50fe134f0f969dd0382b2d4d9c">摘抄官方文档 <a class="notion-link" href="https://posativ.org/isso/docs/install/" target="_blank" rel="noopener noreferrer">https://posativ.org/isso/docs/install/</a></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-29a1f70740ef4d39be223e1147829666" data-id="29a1f70740ef4d39be223e1147829666"><span><div id="29a1f70740ef4d39be223e1147829666" class="notion-header-anchor"></div><a class="notion-hash-link" href="#29a1f70740ef4d39be223e1147829666" title="头像使用Gravatar"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">头像使用Gravatar</span></span></h3><div class="notion-text notion-block-7ddd40358ccf497eb0c1879fdfc2cce6"><s>由于ISSO的作者担忧</s><a class="notion-link" href="https://meta.stackexchange.com/questions/44717/is-gravatar-a-privacy-risk" target="_blank" rel="noopener noreferrer"><s>Gravatar的隐私泄露</s></a><s>反对Gravatar功能</s>，但是github上有一个Pull requests可以自行编译而支持Gravatar的头像显示
源Pull requests：<a class="notion-link" href="https://github.com/posativ/isso/pull/317" target="_blank" rel="noopener noreferrer">https://github.com/posativ/isso/pull/317</a>
我的分支链接：<a class="notion-link" href="https://github.com/Hscpro/isso" target="_blank" rel="noopener noreferrer">https://github.com/Hscpro/isso</a>
不会用github就直接克隆我的GIT进行编译吧，编译教程**<a class="notion-link" href="https://posativ.org/isso/docs/install/" target="_blank" rel="noopener noreferrer">点这里</a>** （<b>官方已在 </b><a class="notion-link" href="https://github.com/posativ/isso/releases" target="_blank" rel="noopener noreferrer"><b>0.11.0</b></a><b> 增加了Gravatar头像、邮件回复、管理面板等功能</b>）
请注意官方教程上的环境依赖！编译安装与直接安装环境要求不一样</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-57c5b9f057bb4e15adb47e75be2ed09e" data-id="57c5b9f057bb4e15adb47e75be2ed09e"><span><div id="57c5b9f057bb4e15adb47e75be2ed09e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#57c5b9f057bb4e15adb47e75be2ed09e" title="邮件回复通知"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">邮件回复通知</span></span></h3><div class="notion-text notion-block-b2e1cb2b86384371ac1157b354c57935">github上有一个Pull requests是实现邮件回复通知的提交
<a class="notion-link" href="https://github.com/posativ/isso/pull/50" target="_blank" rel="noopener noreferrer">https://github.com/posativ/isso/pull/50</a></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3fe61893bc1746a6849d2a28677dacbd" data-id="3fe61893bc1746a6849d2a28677dacbd"><span><div id="3fe61893bc1746a6849d2a28677dacbd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3fe61893bc1746a6849d2a28677dacbd" title="END"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">END</span></span></h3><div class="notion-text notion-block-a3c700981f24497293e15abdf3cd0a3f"><b>文章最后修订日期：2019-1-13 12:01:02</b>
启用了ISSO评论，并写了个备份脚本定期自动备份评论数据到云盘，从此腰也不疼，再也不用担心他方评论系统哪天人家心情不好来个关闭，搬评论数据甚至痛失数据的灾难了。
名称和邮箱必须填写（给你自己一个身份吧亲），我也开启了邮件地址加密，你填写的邮箱并不会被垃圾蜘蛛扫描</div><div class="notion-blank notion-block-da4e02e9ec3a4c4ba5a2ba463bd7a049"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wannacry 蠕虫勒索(比特币)病毒补丁与免疫工具]]></title>
            <link>https://tangly1024.com/article/wannacry-patch</link>
            <guid>https://tangly1024.com/article/wannacry-patch</guid>
            <pubDate>Mon, 15 May 2017 00:00:00 GMT</pubDate>
            <description><![CDATA[席卷全球的WannaCry勒索病毒的影响仍在持续，全球多个国家受到网络攻击。目前病毒已经变种，尽快禁封相关协议端口并打上电脑漏洞补丁。]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-7038ca1bbac24e0bae564321ee34acb0"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><blockquote class="notion-quote notion-block-016c31d4ed0b4415b07717db067597ce"><div>席卷全球的WannaCry勒索病毒的影响仍在持续，全球多个国家受到网络攻击。目前病毒已经变种，尽快禁封相关协议端口并打上电脑漏洞补丁。</div></blockquote><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-17412b9f16b346ccac80688cbac0e7bc" data-id="17412b9f16b346ccac80688cbac0e7bc"><span><div id="17412b9f16b346ccac80688cbac0e7bc" class="notion-header-anchor"></div><a class="notion-hash-link" href="#17412b9f16b346ccac80688cbac0e7bc" title="免疫工具"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">免疫工具</span></span></h3><div class="notion-text notion-block-cd07a10910da4610a5e2388a3b35d5c6">电脑管家团队免疫工具：</div><div class="notion-text notion-block-2438f6d1824c49689cabbfd3ad21279a"><a class="notion-link" href="http://guanjia.qq.com/wannacry/" target="_blank" rel="noopener noreferrer">http://guanjia.qq.com/wannacry/</a></div><div class="notion-text notion-block-accd734646cc4e11ade88afbe4f3eb80">企业级IT团队研发免疫工具：</div><div class="notion-text notion-block-ecfe81f0049e4377becde5ca97388e9d"><a class="notion-link" href="https://eyun.baidu.com/s/3pKB0rcJ" target="_blank" rel="noopener noreferrer">https://eyun.baidu.com/s/3pKB0rcJ</a></div><div class="notion-text notion-block-73e2f5632258448a9521428f70c99b6b">密码：hscbook</div><div class="notion-text notion-block-7639b88b8d9741819a7f74cb31a1122a"><b>请注意：该补丁不是一次性的，打完补丁会有程序驻守后台实时防护，等风头过去了再删除</b></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-0058bec5477344f18cb55b3b560d4e1b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/7fdd7117-e8d4-4a04-ba1b-69aedb58b7db/98da9c3e-d05d-4189-91fc-8434e0eedff8/201705151253.jpg?table=block&amp;id=0058bec5-4773-44f1-8cb5-5b3b560d4e1b&amp;spaceId=7fdd7117-e8d4-4a04-ba1b-69aedb58b7db&amp;expirationTimestamp=1790042400000&amp;signature=pL3J5JVpApL2alx-br1wwSXu5ZXGGhHjqfA_og3QQ4s&amp;t=0058bec5-4773-44f1-8cb5-5b3b560d4e1b" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-a1c6b8c2838f4d1db7141edb714d5103" data-id="a1c6b8c2838f4d1db7141edb714d5103"><span><div id="a1c6b8c2838f4d1db7141edb714d5103" class="notion-header-anchor"></div><a class="notion-hash-link" href="#a1c6b8c2838f4d1db7141edb714d5103" title="微软补丁"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">微软补丁</span></span></h3><div class="notion-text notion-block-4aec0f0f80de49e99116487a059a05b9">WIN7/10及Ser系列系统：<a class="notion-link" href="https://technet.microsoft.com/zh-cn/library/security/MS17-010.aspx" target="_blank" rel="noopener noreferrer">https://technet.microsoft.com/zh-cn/library/security/MS17-010.aspx</a> XP(P0-3)/WIN8系统补丁：<a class="notion-link" href="http://www.catalog.update.microsoft.com/Search.aspx?q=KB4012598" target="_blank" rel="noopener noreferrer">http://www.catalog.update.microsoft.com/Search.aspx?q=KB4012598</a></div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nginx反代理加速，打造自己的Gravatar头像缓存服务器]]></title>
            <link>https://tangly1024.com/article/gravatar-cdn</link>
            <guid>https://tangly1024.com/article/gravatar-cdn</guid>
            <pubDate>Sat, 25 Mar 2017 00:00:00 GMT</pubDate>
            <description><![CDATA[利用Nginx反代理结合七牛CDN打造自己的Gravatar头像服务器]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-69b4b458c2ef4a5181faf93de6d6ce5f"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><blockquote class="notion-quote notion-block-6f2f558ec1d44c37945bf52b7e5cc4fd"><div>利用Nginx反代理结合七牛CDN打造自己的Gravatar头像服务器</div></blockquote><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-81fdd57d03954606a334e4e0a378d354" data-id="81fdd57d03954606a334e4e0a378d354"><span><div id="81fdd57d03954606a334e4e0a378d354" class="notion-header-anchor"></div><a class="notion-hash-link" href="#81fdd57d03954606a334e4e0a378d354" title="修改Nginx开启反代理"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">修改Nginx开启反代理</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-ce3dc13b58a04bc3b4ac6a201802c766" data-id="ce3dc13b58a04bc3b4ac6a201802c766"><span><div id="ce3dc13b58a04bc3b4ac6a201802c766" class="notion-header-anchor"></div><a class="notion-hash-link" href="#ce3dc13b58a04bc3b4ac6a201802c766" title="修改Nginx配置文件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">修改Nginx配置文件</span></span></h4><div class="notion-text notion-block-39bb65df45b84fe2b28365ab7608d29d">修改 nginx.conf 文件，搜索关键词server，在上面添加以下代码</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-25de196a484745b6af3f9cd384b82ec3" data-id="25de196a484745b6af3f9cd384b82ec3"><span><div id="25de196a484745b6af3f9cd384b82ec3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#25de196a484745b6af3f9cd384b82ec3" title="创建反代理文件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">创建反代理文件</span></span></h4><div class="notion-text notion-block-82b340875e4f41b78cd07547bd648ae6">在vhost创建文件 gravatar.conf，</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-c554ec90a0e94113ae1c95c628bf002f" data-id="c554ec90a0e94113ae1c95c628bf002f"><span><div id="c554ec90a0e94113ae1c95c628bf002f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#c554ec90a0e94113ae1c95c628bf002f" title="添加域名解析"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">添加域名解析</span></span></h3><div class="notion-text notion-block-606afa0065fd47718188aa440fc7b248">解析生效后访问 <a class="notion-link" href="http://gravatar.xn--6qqv7i2xdt95b.com/avatar/027f25a89baa6c09d0fae9d618fd1f0f?s=64&amp;d=retro&amp;r=G" target="_blank" rel="noopener noreferrer">gravatar.你的域名.com/avatar/027f25a89baa6c09d0fae9d618fd1f0f?s=64&amp;d=retro&amp;r=G</a> 配置正常的话就能正常显示头像</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-46468e5debdf4bff9bca7a7afe3b185c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/7fdd7117-e8d4-4a04-ba1b-69aedb58b7db/914cc822-5c26-4b5f-9023-326d1429bd61/20161033-01.jpg?table=block&amp;id=46468e5d-ebdf-4bff-9bca-7a7afe3b185c&amp;spaceId=7fdd7117-e8d4-4a04-ba1b-69aedb58b7db&amp;expirationTimestamp=1790042400000&amp;signature=_i45yUGfowN-O6zqr8z7mECqGzICDt6qRQ_j_e5G8SE&amp;t=46468e5d-ebdf-4bff-9bca-7a7afe3b185c" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-8063d088cedd49d88592784f247a0ce0" data-id="8063d088cedd49d88592784f247a0ce0"><span><div id="8063d088cedd49d88592784f247a0ce0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#8063d088cedd49d88592784f247a0ce0" title="WordPress修改地址"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">WordPress修改地址</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e4b45347d1449bbb95939c7a0378ccd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/7fdd7117-e8d4-4a04-ba1b-69aedb58b7db/bb2506f0-f526-463e-b6fe-e0040b09a2ce/20161033-02.jpg?table=block&amp;id=1e4b4534-7d14-49bb-b959-39c7a0378ccd&amp;spaceId=7fdd7117-e8d4-4a04-ba1b-69aedb58b7db&amp;expirationTimestamp=1790042400000&amp;signature=IKnbMF1e4_U5VSuW5jijcDxuPIaDkjmEhL1ufzLw09A&amp;t=1e4b4534-7d14-49bb-b959-39c7a0378ccd" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-3c22940c6cd04eb99fcf3dec9fb6fdd3">
<b>自定义Gravatar服务器插件下载</b>
下载地址1：<a class="notion-link" href="http://pan.baidu.com/s/1o6w4aAQ" target="_blank" rel="noopener noreferrer">http://pan.baidu.com/s/1o6w4aAQ</a> 密码：v7ph
下载地址2：<a class="notion-link" href="https://eyun.baidu.com/s/3o7Qv1Ei" target="_blank" rel="noopener noreferrer">https://eyun.baidu.com/s/3o7Qv1Ei</a> 密码：hscbook</div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hexo 安装网易云跟帖评论的方法和注意事项]]></title>
            <link>https://tangly1024.com/article/hexo-gentie</link>
            <guid>https://tangly1024.com/article/hexo-gentie</guid>
            <pubDate>Sat, 15 Apr 2017 00:00:00 GMT</pubDate>
            <description><![CDATA[对于国内来说送走多说后拥抱网易云跟帖是一个比较好的选择了，对于不在乎国内的访问的话还是比较推荐Disqus，毕竟网易云跟帖项目才刚刚开始还在BETA状态]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-52d36669eba549669fb014b1a6928742"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><blockquote class="notion-quote notion-block-02af1eb463d646d0830cb4502573a91d"><div>对于国内来说送走多说后拥抱网易云跟帖是一个比较好的选择了，对于不在乎国内的访问的话还是比较推荐Disqus，毕竟网易云跟帖项目才刚刚开始还在BETA状态</div></blockquote><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-bbcf9c96128145958257241864be175d" data-id="bbcf9c96128145958257241864be175d"><span><div id="bbcf9c96128145958257241864be175d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#bbcf9c96128145958257241864be175d" title="准备工作"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">准备工作</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-d7cf5de87bf1435589e8d97c130ae49d" data-id="d7cf5de87bf1435589e8d97c130ae49d"><span><div id="d7cf5de87bf1435589e8d97c130ae49d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#d7cf5de87bf1435589e8d97c130ae49d" title="注意事项"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">注意事项</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-1ebbe29169af4dc3baff96ca40a217f5" style="list-style-type:decimal"><li>评论不能带有任何链接会自动Del，后台看不到也无法审核</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-24caec646d2c4dc29b92b4666146ee54" style="list-style-type:decimal"><li><s>文章链接不能有大写的字母或者中文</s></li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1cb450d4106649dfa46866acea062dc2" style="list-style-type:decimal"><li>注册的时候填写域名千万注意别写错了，只有一次更改机会且无法删除</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-2b36e0404a0a4353b249bf3b09d3489e" style="list-style-type:decimal"><li>评论数不是真的评论数是参与数，就算未通过审核也在记数内，包括赞</li></ol><ol start="5" class="notion-list notion-list-numbered notion-block-813ce2233af64e21ae3dce2915e993e9" style="list-style-type:decimal"><li>Maupassant主题修改代码的时候千万要注意缩进要一一对应</li></ol><ol start="6" class="notion-list notion-list-numbered notion-block-92162c2e7561468d8473ab655251f46a" style="list-style-type:decimal"><li>其他主题重点检查<code class="notion-inline-code">ProductKey，join-count，cloud-tie-wrapper</code></li></ol><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-39cdce2d6c3941f29003ec9ca5a249ee" data-id="39cdce2d6c3941f29003ec9ca5a249ee"><span><div id="39cdce2d6c3941f29003ec9ca5a249ee" class="notion-header-anchor"></div><a class="notion-hash-link" href="#39cdce2d6c3941f29003ec9ca5a249ee" title="注册账号"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">注册账号</span></span></h4><div class="notion-text notion-block-535c3a1b48d3424388a6840fad05acd2">前往</div><div class="notion-text notion-block-9ff40b9ca12647d1b4a3fdc3dc777862"><a class="notion-link" href="https://gentie.163.com/" target="_blank" rel="noopener noreferrer">https://gentie.163.com</a></div><div class="notion-text notion-block-d63df17a9a814e279b91aecd21102dc8">按照网站指引注册，添加网站后定位“获取代码页”获取</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-e34e9195eef4444ba2b6b499c54a66fb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/7fdd7117-e8d4-4a04-ba1b-69aedb58b7db/885443ed-213f-4e5a-8041-ee4cd64f7893/hexo-gentie-01.jpg?table=block&amp;id=e34e9195-eef4-444b-a2b6-b499c54a66fb&amp;spaceId=7fdd7117-e8d4-4a04-ba1b-69aedb58b7db&amp;expirationTimestamp=1790042400000&amp;signature=cwssUsZNIy1vJnT18y8KqLU7Rh2UBlumrX0BYMKmVNg&amp;t=e34e9195-eef4-444b-a2b6-b499c54a66fb" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-e4e26e1282604b40a62757fba59e7880"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/7fdd7117-e8d4-4a04-ba1b-69aedb58b7db/0d833140-a88f-4530-ad48-1175c266601f/hexo-gentie-02.jpg?table=block&amp;id=e4e26e12-8260-4b40-a627-57fba59e7880&amp;spaceId=7fdd7117-e8d4-4a04-ba1b-69aedb58b7db&amp;expirationTimestamp=1790042400000&amp;signature=053qZb9xHvT4e3ZOiRmA-_6FIr7dxhfK4vrjZiI_jaE&amp;t=e4e26e12-8260-4b40-a627-57fba59e7880" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-0ef0cbe2eefd4f4ebfcee51c40f7d635" data-id="0ef0cbe2eefd4f4ebfcee51c40f7d635"><span><div id="0ef0cbe2eefd4f4ebfcee51c40f7d635" class="notion-header-anchor"></div><a class="notion-hash-link" href="#0ef0cbe2eefd4f4ebfcee51c40f7d635" title="通用教程"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">通用教程</span></span></h3><div class="notion-text notion-block-2d54dda51f4348bb9e02185e22ce8f67">具体参考官方网的安装帮助文档 <a class="notion-link" href="https://gentie.163.com/help.html#install" target="_blank" rel="noopener noreferrer">https://gentie.163.com/help.html#install</a></div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-40b3bdacbdb94d0f96795ef27a871258" data-id="40b3bdacbdb94d0f96795ef27a871258"><span><div id="40b3bdacbdb94d0f96795ef27a871258" class="notion-header-anchor"></div><a class="notion-hash-link" href="#40b3bdacbdb94d0f96795ef27a871258" title="文章评论框"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">文章评论框</span></span></h4><div class="notion-text notion-block-df68fe52cc924db5b6cd269ab8aa4186">在文章页评论框的DIV处添加代码并替换 <code class="notion-inline-code">ProductKey、LoaderID1</code> 中的文本
<code class="notion-inline-code">div</code> 的 <code class="notion-inline-code">id=&quot;cloud-tie-wrapper&quot;</code> 和 <code class="notion-inline-code">script</code> 的 <code class="notion-inline-code">target: &quot;cloud-tie-wrapper&quot;</code> 可以更改为其他名称，但是必须是对应的。</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-9bba9ac8e4624106b3e0814ffae78f98" data-id="9bba9ac8e4624106b3e0814ffae78f98"><span><div id="9bba9ac8e4624106b3e0814ffae78f98" class="notion-header-anchor"></div><a class="notion-hash-link" href="#9bba9ac8e4624106b3e0814ffae78f98" title="首页评论数"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">首页评论数</span></span></h4><div class="notion-text notion-block-e353f3ff7cee4c228787d331a68e6e89">在主页最尾部添加代码并替换 <code class="notion-inline-code">ProductKey、LoaderID2</code> 中的文本</div><div class="notion-text notion-block-f8619e753bb2448dbcdc12b2ff933257">在每个文章列放置显示评论数的<b>span</b>
文章地址是你要显示评论数的文章地址比如首页的文章列表为：</div><ol start="1" class="notion-list notion-list-numbered notion-block-189cc6bf40274a9bac98353e9b8be0ae" style="list-style-type:decimal"><li>文章1</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-711b8c391fbd4146ac928b7e59c28355" style="list-style-type:decimal"><li>文章2</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-57863a4225ec4b088914cd9b0665917d" style="list-style-type:decimal"><li>文章3</li></ol><div class="notion-text notion-block-6835f7cd63874d5fa876681c02da0d87">其中文章1的地址为<code class="notion-inline-code">https://hscbook.com/1</code>,那么该<b>span</b>的文章地址就应该为<code class="notion-inline-code">https://hscbook.com/1</code></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-a469f8d78e6a443ebc7b684a916ac506" data-id="a469f8d78e6a443ebc7b684a916ac506"><span><div id="a469f8d78e6a443ebc7b684a916ac506" class="notion-header-anchor"></div><a class="notion-hash-link" href="#a469f8d78e6a443ebc7b684a916ac506" title="Maupassant适用"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Maupassant适用</span></span></h3><div class="notion-text notion-block-8eb4d378526246fd98bebeb2ae124cbc">目前 <a class="notion-link" href="https://github.com/tufu9441/maupassant-hexo" target="_blank" rel="noopener noreferrer">Maupassant</a> 主题已经<a class="notion-link" href="https://github.com/tufu9441/maupassant-hexo/pull/245" target="_blank" rel="noopener noreferrer">添加了网易云跟帖</a>，<s>但是有点缺陷以及首页没有显示评论数</s>，按需修改，不要无脑复制！</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-cee2550d14c44c0fac73353efb29f62f" data-id="cee2550d14c44c0fac73353efb29f62f"><span><div id="cee2550d14c44c0fac73353efb29f62f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#cee2550d14c44c0fac73353efb29f62f" title="文章评论框"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">文章评论框</span></span></h4><div class="notion-text notion-block-f9010a067ed747bb89bd8a2ea32c7408"><a class="notion-link" href="https://github.com/tufu9441/maupassant-hexo" target="_blank" rel="noopener noreferrer">Maupassant</a> 主题定位 <code class="notion-inline-code">.\\layout\\_partial\\comments.jade</code> 文件，在最尾部添加代码</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-d5ae16ce23b841738a60ff290d0dd155" data-id="d5ae16ce23b841738a60ff290d0dd155"><span><div id="d5ae16ce23b841738a60ff290d0dd155" class="notion-header-anchor"></div><a class="notion-hash-link" href="#d5ae16ce23b841738a60ff290d0dd155" title="首页评论数"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">首页评论数</span></span></h4><div class="notion-text notion-block-d510e6727c984e7380310ad1fbf9a1f3"><a class="notion-link" href="https://github.com/tufu9441/maupassant-hexo" target="_blank" rel="noopener noreferrer">Maupassant</a> 主题定位 <code class="notion-inline-code">.\\layout\\index.jade</code> 文件，在最尾部添加代码，<b>千万千万千万注意要对应缩进</b></div><div class="notion-text notion-block-465387bc35474ab2bc5fcdae62fb0054">搜索 <code class="notion-inline-code">if post.description</code> 在 <code class="notion-inline-code">if post.description</code> 的上面添加代码</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-306784478d9a488a92f2887c0b516142" data-id="306784478d9a488a92f2887c0b516142"><span><div id="306784478d9a488a92f2887c0b516142" class="notion-header-anchor"></div><a class="notion-hash-link" href="#306784478d9a488a92f2887c0b516142" title="文章评论数"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">文章评论数</span></span></h4><div class="notion-text notion-block-5ce320ff8a9147788838ee3a40b5ac7d">搜索 <code class="notion-inline-code">if page.toc</code> 在 <code class="notion-inline-code">if page.toc</code> 的上面添加代码</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-66a5fe30223649b595bfa46584819194" data-id="66a5fe30223649b595bfa46584819194"><span><div id="66a5fe30223649b595bfa46584819194" class="notion-header-anchor"></div><a class="notion-hash-link" href="#66a5fe30223649b595bfa46584819194" title="修改主题配置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">修改主题配置</span></span></h4><div class="notion-text notion-block-ff7a8eea36784afe80b159bbafb22701">打开主题配置文件 <b>_config.yml</b> 在最后面添加（把<code class="notion-inline-code">ProductKey</code>替换为上面获取的数值），注意“：”之后要有空隔</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-ab4f43c175f54f159d13b30fed477724" data-id="ab4f43c175f54f159d13b30fed477724"><span><div id="ab4f43c175f54f159d13b30fed477724" class="notion-header-anchor"></div><a class="notion-hash-link" href="#ab4f43c175f54f159d13b30fed477724" title="END"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">END</span></span></h3><div class="notion-text notion-block-8b5b4073e0304ee289ee887c5a465d15">Maupassant 修改完成后首页以及文章页上面的评论数样式好像有点问题需要修改一下<b>style</b>文件，你们自己琢磨一下，或者等我有空的时候修改代码再次Pull上主分支吧。有什么问题请在下面留言，觉得文章对你有帮助就多回来看看。
<s>目前 </s><a class="notion-link" href="https://github.com/tufu9441/maupassant-hexo" target="_blank" rel="noopener noreferrer"><s>Maupassant</s></a><s> 主题已经</s><a class="notion-link" href="https://github.com/tufu9441/maupassant-hexo/pull/245" target="_blank" rel="noopener noreferrer"><s>添加了网易云跟帖</s></a><s>，并且已完善</s><b>网易云跟帖已于2017-08-01正式关闭服务，从此又少了一个优秀的第三方评论服务！</b></div><div class="notion-text notion-block-88a674cdc3f0470aa419e3f987081217"><em>文章最后修订日期：2017-9-22 09:08:03</em></div><div class="notion-blank notion-block-5aecad2b396f412ebde02bb2ac51d716"> </div><div class="notion-blank notion-block-7cd0b70599bb4621ad9829cb0a6232a7"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[一个合格的服务器自动备份案例，闭环备份机制出错邮件报警]]></title>
            <link>https://tangly1024.com/article/linux-backups</link>
            <guid>https://tangly1024.com/article/linux-backups</guid>
            <pubDate>Sat, 23 Sep 2017 00:00:00 GMT</pubDate>
            <description><![CDATA[数据无价，服务器备份机制是服务器维护的重中之重！利用Dropbox的上传脚本+Monit监控实现服务器每周循环生成备份并上传到 Dropbox 网盘，通过 Shell 脚本实现出现备份失败及时通过邮件通知、自动清理旧的备份数据、禁止在黄金时段执行备份、禁止重复覆盖备份，确保服务器的宝贵数据万无一失！]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-654217c9d6b94d4796c9ec36d331dbdf"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><blockquote class="notion-quote notion-block-01dc718f834d4f45a744d7780332e321"><div>数据无价，服务器备份机制是服务器维护的重中之重！利用Dropbox的上传脚本+Monit监控实现服务器每周循环生成备份并上传到 Dropbox 网盘，通过 Shell 脚本实现出现备份失败及时通过邮件通知、自动清理旧的备份数据、禁止在黄金时段执行备份、禁止重复覆盖备份，确保服务器的宝贵数据万无一失！</div></blockquote><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-6fef21368f464e789fb1f2ee714534d9" data-id="6fef21368f464e789fb1f2ee714534d9"><span><div id="6fef21368f464e789fb1f2ee714534d9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#6fef21368f464e789fb1f2ee714534d9" title="环境安装"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">环境安装</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-ab3fb8da4f984588b8f3022b89ac5b0f" data-id="ab3fb8da4f984588b8f3022b89ac5b0f"><span><div id="ab3fb8da4f984588b8f3022b89ac5b0f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#ab3fb8da4f984588b8f3022b89ac5b0f" title="Monit 监控服务"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Monit 监控服务</span></span></h4><div class="notion-text notion-block-b5bed8e151ec49b88376c059f7e38573">安装没有什么技术难度，本文不再啰嗦，有包管理用包管理安装没包管理用<a class="notion-link" href="https://github.com/arnaudsj/monit" target="_blank" rel="noopener noreferrer">源码</a>编译安装，遇到困难自行Google。</div><div class="notion-text notion-block-5943e8ad172f4506bc05966972852d41">RedHat / CentOS / Fedora</div><div class="notion-text notion-block-9635effd39d84b17bddd1fae0ffc28bb">Ubuntu / Debian / Linux Mint</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-a92717366d2346fc88a5f193f9806540" data-id="a92717366d2346fc88a5f193f9806540"><span><div id="a92717366d2346fc88a5f193f9806540" class="notion-header-anchor"></div><a class="notion-hash-link" href="#a92717366d2346fc88a5f193f9806540" title="Dropbox 上传脚本"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Dropbox 上传脚本</span></span></h4><div class="notion-text notion-block-db2001df41324aa1941b4677732b19be">直接使用 <a class="notion-link" href="https://github.com/andreafabrizi/Dropbox-Uploader" target="_blank" rel="noopener noreferrer">Andreafabrizi</a> 写好的现成脚本 <a class="notion-link" href="https://github.com/andreafabrizi/Dropbox-Uploader" target="_blank" rel="noopener noreferrer">Dropbox-Uploader</a> 稍作配置即可使用，配置教程下方提及。</div><div class="notion-text notion-block-b759ef94811d40ca8c3dba2ea00b0f32"><b>下载 Dropbox 上传脚本</b></div><div class="notion-text notion-block-b5b58095b684417fb36a978871f9ba85"><b>配置 Dropbox 上传脚本</b></div><div class="notion-text notion-block-c58a76ea3e3b4caf8946d432d8cfea24">访问 <a class="notion-link" href="https://www.dropbox.com/developers/apps" target="_blank" rel="noopener noreferrer">https://www.dropbox.com/developers/apps</a></div><div class="notion-text notion-block-be1a6e2d9e004981b825625e05f20db7">创建 APP 程序 （点击Create app）</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-a1d1f2f56e034987ba43776e4cc75462"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/7fdd7117-e8d4-4a04-ba1b-69aedb58b7db/c0f6daf9-fb94-4951-84d9-8e5578e49376/20170922185018.jpg?table=block&amp;id=a1d1f2f5-6e03-4987-ba43-776e4cc75462&amp;spaceId=7fdd7117-e8d4-4a04-ba1b-69aedb58b7db&amp;expirationTimestamp=1790042400000&amp;signature=0eJK_7rx5SDKWjR7FhqUBSB3LvgY6V1Xd1XzZ8KekxM&amp;t=a1d1f2f5-6e03-4987-ba43-776e4cc75462" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-dd5a38fd430d41ec86478954f35378a1">创建 API 密钥</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-8cfa1484fdd949c98e4bb46b6b045bf2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/7fdd7117-e8d4-4a04-ba1b-69aedb58b7db/46c14c06-d1f8-499f-b48a-c9d87a07965b/20170922190421.jpg?table=block&amp;id=8cfa1484-fdd9-49c9-8e4b-b46b6b045bf2&amp;spaceId=7fdd7117-e8d4-4a04-ba1b-69aedb58b7db&amp;expirationTimestamp=1790042400000&amp;signature=-xcQP-QCv0B5hkqHLXYx28lBMnPfIgBXH5IUn0kcgOw&amp;t=8cfa1484-fdd9-49c9-8e4b-b46b6b045bf2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-561362d5e4f449b2bcb6e499afb63bbb">运行 <code class="notion-inline-code">dropbox_uploader.sh</code> 按提示输入 Dropbox API 密钥</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-30aa50b1bbcb4c848d87e2394dcb4d91" data-id="30aa50b1bbcb4c848d87e2394dcb4d91"><span><div id="30aa50b1bbcb4c848d87e2394dcb4d91" class="notion-header-anchor"></div><a class="notion-hash-link" href="#30aa50b1bbcb4c848d87e2394dcb4d91" title="构建备份脚本"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">构建备份脚本</span></span></h3><div class="notion-text notion-block-897faff7e41641a8bab52caf9c8b891c">本脚本是基于 Monit 的监控原理来写的，所以最好配合 Monit 来使用(邮件报警功能是由 Monit 实现的)。由于我的服务器没有什么要用得上Mysql数据库的程序所以没写这方面的备份脚本，可直接备份Mysql的数据文件夹是一样的效果。</div><div class="notion-text notion-block-1f6a0ad6c7cd426a9cffaec4e216a44c"><b>注意事项</b></div><ol start="1" class="notion-list notion-list-numbered notion-block-cec7e542c9d04bdd926f67914ae8ad4f" style="list-style-type:decimal"><li>临时文件夹：&#x27;BACK_DATA&#x27; 变量的路径<b>不能</b>在要<b>备份的文件夹</b>内，最好就是设置在系统的 &#x27;tmp&#x27;临时文件夹内</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-6becc7ecd9f2409fa622451f0f43cd23" style="list-style-type:decimal"><li>备份文件夹：需要多少备份多少个目录就添加多少个数组，例：备份两个目录 &#x27; folder[0]=&quot;/...&quot; folder[1]=&quot;/...&quot; &#x27; 备份三个目录 &#x27; folder[0]=&quot;/...&quot; folder[1]=&quot;/...&quot; folder[2]=&quot;/...&quot; &#x27; 以此类推</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-fce57dfc51ab4cbd935609606b19a87c" style="list-style-type:decimal"><li>Dropbox的目录： &#x27;DROPBOX_DIR &#x27;要设置在子目录，这样设置有个好处就是多个服务器的备份不冲突</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-68c3ef8897604b5f9b5571838dd61cfd" style="list-style-type:decimal"><li>成功备份脚本返回 （0 ） 备份失败脚本返回（1）</li></ol><div class="notion-text notion-block-6adaa600447c4b2081222abf32700644">&lt;ins/&gt;</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-8573c82f51494dc6b354cedcf3943925" data-id="8573c82f51494dc6b354cedcf3943925"><span><div id="8573c82f51494dc6b354cedcf3943925" class="notion-header-anchor"></div><a class="notion-hash-link" href="#8573c82f51494dc6b354cedcf3943925" title="Monit 监控脚本"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Monit 监控脚本</span></span></h3><div class="notion-text notion-block-0698fcb313124c378fd7632d77c8bea1">Monit 的强大配置都写完的话就跑题了，这里只写邮件服务器的配置和与本文相关的配置。</div><div class="notion-text notion-block-e25daf4ca89342628e7e7e90a6cf436f"><b>邮件服务器配置</b></div><div class="notion-text notion-block-360072e43b1c4f4fad100fa5af99c3a5"><b>备份脚本监控</b></div><div class="notion-blank notion-block-ac7f4d1f11b045c2a093d94a56fe197c"> </div></main></div>]]></content:encoded>
        </item>
    </channel>
</rss>