<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>FreshRSS相关文章列表 | 皇家元林</title>
	<atom:link href="https://hjyl.org/tags/freshrss/feed/" rel="self" type="application/rss+xml" />
	<link>https://hjyl.org</link>
	<description>刘元林的个人博客</description>
	<lastBuildDate>Fri, 04 Oct 2024 12:54:40 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://img.hjyl.org/uploads/2019/10/cropped-about-me-32x32.png</url>
	<title>FreshRSS相关文章列表 | 皇家元林</title>
	<link>https://hjyl.org</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>加入Follow</title>
		<link>https://hjyl.org/follow-follow/</link>
					<comments>https://hjyl.org/follow-follow/#comments</comments>
		
		<dc:creator><![CDATA[皇家元林]]></dc:creator>
		<pubDate>Fri, 04 Oct 2024 11:32:27 +0000</pubDate>
				<category><![CDATA[生活点滴]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[follow]]></category>
		<category><![CDATA[FreshRSS]]></category>
		<category><![CDATA[RSS订阅]]></category>
		<guid isPermaLink="false">https://hjyl.org/?p=5374</guid>

					<description><![CDATA[凡事越着急越没用，之前费老大劲儿在各种论坛、博客、搜索、X、discord找邀请码，一无所获。正当我要准备放弃 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>凡事越着急越没用，之前费老大劲儿在各种论坛、博客、搜索、X、discord找邀请码，一无所获。正当我要准备放弃的时候，热心的童鞋<a href="https://hjyl.org/go/aHR0cHM6Ly9hY2V2cy5jb20v" rel="nofollow" target="_blank">@acevs</a>第一个送我一个邀请码，非常非常感谢，同时我也会将这束光传承下去的。刚开始弄，先把freshrss订阅的feed转移过去，不清楚这个东西是不是在不同平台同步更新feed的，若是的话，我可以省一个网站了。在个人资料——唯一标识，不限制ID长短，这个很不错，趁现在用的人少可以抢注。然后就是认证，很高级哈，我得弄下。</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="816" height="768" src="https://img.hjyl.org/uploads/2024/10/20241004193410.jpg"  class="wp-image-5376" title="20241004193410.jpg" alt="20241004193410.jpg" /><figcaption class="wp-element-caption">follow@hjyl</figcaption></figure>



<p>这种认证方式是不是有点草率了，如果别人复制这段，放到自己博客上，是不是也可以？</p>
<div id="content-copyright"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;font-size: 13px;">版权声明: </span><span style="font-size: 13px;">本文采用 <a href="https://hjyl.org/go/aHR0cHM6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzMuMC8=" rel="nofollow" target="_blank">BY-NC-SA</a> 协议进行授权，如无注明均为原创，转载请注明转自 <a href="https://hjyl.org">皇家元林</a><br>本文链接: <a rel="bookmark" title="加入Follow" href="https://hjyl.org/follow-follow/">加入Follow</a></span></div>]]></content:encoded>
					
					<wfw:commentRss>https://hjyl.org/follow-follow/feed/</wfw:commentRss>
			<slash:comments>16</slash:comments>
		
		
			</item>
		<item>
		<title>FreshRSS Google Reader API configuration test:FAIL: HTTP error 404 Not Found</title>
		<link>https://hjyl.org/freshrss-google-reader-api-error-404/</link>
					<comments>https://hjyl.org/freshrss-google-reader-api-error-404/#comments</comments>
		
		<dc:creator><![CDATA[皇家元林]]></dc:creator>
		<pubDate>Sun, 17 Sep 2023 14:31:24 +0000</pubDate>
				<category><![CDATA[元林手札]]></category>
		<category><![CDATA[404 Not Found]]></category>
		<category><![CDATA[fileinfo库]]></category>
		<category><![CDATA[FreshRSS]]></category>
		<category><![CDATA[Google Reader API]]></category>
		<category><![CDATA[greader.php API]]></category>
		<category><![CDATA[LNMP]]></category>
		<category><![CDATA[RSS订阅]]></category>
		<category><![CDATA[宝塔]]></category>
		<guid isPermaLink="false">https://hjyl.org/?p=4642</guid>

					<description><![CDATA[军哥的LNMP在PHP的扩展fileinfo 库配置文件的设置上有个问题，导致FreshRSS Google  [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>军哥的LNMP在PHP的扩展fileinfo 库配置文件的设置上有个问题，导致FreshRSS Google Reader API check compatibility 显示404错误，这个错误导致在一些RSS订阅的app无法使用greader.php API。</p>



<p>FreshRSS在github issues上也有人遇到类似的问题，但是他们的方法我这边不适用。</p>



<figure class="wp-block-image size-full"><a href="https://img.hjyl.org/uploads/2023/09/20230917214658.jpg"><img decoding="async" width="568" height="543" src="https://img.hjyl.org/uploads/2023/09/20230917214658.jpg"  class="wp-image-4643" title="20230917214658.jpg" alt="20230917214658.jpg" /></a><figcaption class="wp-element-caption">Google Reader API configuration test:FAIL: HTTP error 404 Not Found</figcaption></figure>



<p>比较了一下LNMP与宝塔lnmp的设置，发现在fileinfo 库的配置文件上有些不同，宝塔安装freshrss就没有上图问题。所以我们如此操作一下：</p>



<pre class="wp-block-code"><code>#备份pathinfo.conf文件，以防万一宝塔的代码有问题，还能恢复回来
cp /usr/local/nginx/conf/pathinfo.conf /usr/local/nginx/conf/pathinfo.conf.bak

vi /usr/local/nginx/conf/pathinfo.conf
#按“i”键进入编辑状态，将里面的内容全部删除，然后贴上下面的代码，此代码来自宝塔/www/server/nginx/conf/pathinfo.conf

set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
		set $real_script_name $1;
		set $path_info $2;
 }
fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
fastcgi_param SCRIPT_NAME $real_script_name;
fastcgi_param PATH_INFO $path_info;

#按“ESC”，键入“:wq”保存！然后编辑enable-php.conf。

vi /usr/local/nginx/conf/enable-php.conf
#加入include pathinfo.conf;

        location ~ &#91;^/]\.php(/|$)
        {
            try_files $uri =404;
            fastcgi_pass  unix:/tmp/php-cgi.sock;
            fastcgi_index index.php;
            include fastcgi.conf;
            include pathinfo.conf; #新增部分
        }</code></pre>



<pre class="wp-block-code"><code>nginx -s reload   #重新加载nginx</code></pre>



<figure class="wp-block-image size-full"><a href="https://img.hjyl.org/uploads/2023/09/20230917222157.jpg"><img decoding="async" width="440" height="351" src="https://img.hjyl.org/uploads/2023/09/20230917222157.jpg"  class="wp-image-4644" title="20230917222157.jpg" alt="20230917222157.jpg" /></a><figcaption class="wp-element-caption">Google Reader API configuration test PASS</figcaption></figure>



<p>—— 完 ——</p>
<div id="content-copyright"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;font-size: 13px;">版权声明: </span><span style="font-size: 13px;">本文采用 <a href="https://hjyl.org/go/aHR0cHM6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzMuMC8=" rel="nofollow" target="_blank">BY-NC-SA</a> 协议进行授权，如无注明均为原创，转载请注明转自 <a href="https://hjyl.org">皇家元林</a><br>本文链接: <a rel="bookmark" title="FreshRSS Google Reader API configuration test:FAIL: HTTP error 404 Not Found" href="https://hjyl.org/freshrss-google-reader-api-error-404/">FreshRSS Google Reader API configuration test:FAIL: HTTP error 404 Not Found</a></span></div>]]></content:encoded>
					
					<wfw:commentRss>https://hjyl.org/freshrss-google-reader-api-error-404/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>恢复MySQL.ibd数据库</title>
		<link>https://hjyl.org/mysql-ibd-recovery/</link>
					<comments>https://hjyl.org/mysql-ibd-recovery/#comments</comments>
		
		<dc:creator><![CDATA[皇家元林]]></dc:creator>
		<pubDate>Sat, 16 Sep 2023 15:47:37 +0000</pubDate>
				<category><![CDATA[元林手札]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[FreshRSS]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[PhpMyAdmin]]></category>
		<category><![CDATA[扩展名ibd]]></category>
		<category><![CDATA[数据库]]></category>
		<guid isPermaLink="false">https://hjyl.org/?p=4628</guid>

					<description><![CDATA[前两天服务器宕机，导致很多数据丢失，尤其是群晖里docker数据，譬如rss.iyl.me，好在映射在群晖文件 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>前两天服务器宕机，导致很多数据丢失，尤其是群晖里docker数据，譬如rss.iyl.me，好在映射在群晖文件夹里，我直接拷贝下来了。</p>



<p>之前数据库备份一直都是mysqldump命令或者phpMyAdmin导出来.sql及其压缩格式。今天我们来试试如何恢复MySQL/data文件夹下的数据库。</p>



<p>在之前<a href="https://hjyl.org/dsm-docker-mysql-phpmyadmin/">群晖docker安装MySQL和phpmyadmin</a>的文章里，介绍到MySQL的data路径/var/lib/mysql映射到/docker/mysql。</p>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><a href="https://img.hjyl.org/uploads/2023/09/20230916212453.png"><img loading="lazy" decoding="async" width="450" height="516" data-id="4630" src="https://img.hjyl.org/uploads/2023/09/20230916212453.png"  class="wp-image-4630" title="20230916212453.png" alt="20230916212453.png" /></a><figcaption class="wp-element-caption">数据库freshrss</figcaption></figure>



<figure class="wp-block-image size-large"><a href="https://img.hjyl.org/uploads/2023/09/20230916212955.png"><img loading="lazy" decoding="async" width="493" height="303" data-id="4629" src="https://img.hjyl.org/uploads/2023/09/20230916212955.png"  class="wp-image-4629" title="20230916212955.png" alt="20230916212955.png" /></a><figcaption class="wp-element-caption">扩展名.ibd数据库</figcaption></figure>
</figure>



<p>有人说直接把MySQL文件夹下的文件直接覆盖不就行了？我试过，然后MySQL意外停止。</p>



<p>1、先别急，在phpmyadmin里新建一个数据库freshrss，将从新建立的freshrss站点备份出来的数据库导入进去。但是务必要确定与你要恢复的数据表名称一致！需要的可以<a href="https://alist.hjyl.org/d/%E7%BE%A4%E6%99%96%E7%B3%BB%E5%88%97/freshrss.sql.gz">下载我这个文件</a>，将数据表前缀改成你自己的就成。</p>



<figure class="wp-block-image size-full"><a href="https://img.hjyl.org/uploads/2023/09/20230916214400.png"><img loading="lazy" decoding="async" width="597" height="403" src="https://img.hjyl.org/uploads/2023/09/20230916214400.png"  class="wp-image-4631" style="object-fit:cover" title="20230916214400.png" alt="20230916214400.png" /></a><figcaption class="wp-element-caption">新建空白数据表</figcaption></figure>



<p>2、此时，你回头看看/docker/mysql/freshrss/下就会出现与上面新建数据表一样的数据了。然后关闭MySQL服务，我们尽量不要在数据库使用的情况下替换，接着我们将备份数据覆盖/docker/mysql/freshrss/下的数据，然后我们再启动MySQL服务。</p>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-full"><a href="https://img.hjyl.org/uploads/2023/09/20230916223154.png"><img loading="lazy" decoding="async" width="541" height="308" data-id="4634" src="https://img.hjyl.org/uploads/2023/09/20230916223154.png"  class="wp-image-4634" title="20230916223154.png" alt="20230916223154.png" /></a><figcaption class="wp-element-caption">覆盖前</figcaption></figure>



<figure class="wp-block-image size-large"><a href="https://img.hjyl.org/uploads/2023/09/20230916215135.png"><img loading="lazy" decoding="async" width="584" height="326" data-id="4633" src="https://img.hjyl.org/uploads/2023/09/20230916215135.png"  class="wp-image-4633" title="20230916215135.png" alt="20230916215135.png" /></a><figcaption class="wp-element-caption">覆盖后</figcaption></figure>
</figure>



<p>3、通过SSH进入群晖里docker。</p>



<pre class="wp-block-code"><code>docker ps                                #列出当前运行的docker
docker exec -it <strong>Docker_ID</strong> /bin/bash      #<strong>Docker_ID</strong> 为上述列出的docker id
mysql -uroot -p                          #进入MySQL，输入密码，回车
use freshrss                             #选择freshrss数据库
#下面是导入各个数据表
ALTER TABLE rss_hjyl_org_category IMPORT TABLESPACE;
ALTER TABLE rss_hjyl_org_entry IMPORT TABLESPACE;
ALTER TABLE rss_hjyl_org_entrytag IMPORT TABLESPACE;
ALTER TABLE rss_hjyl_org_entrytmp IMPORT TABLESPACE;
ALTER TABLE rss_hjyl_org_feed IMPORT TABLESPACE;
ALTER TABLE rss_hjyl_org_tag IMPORT TABLESPACE;</code></pre>



<figure class="wp-block-image size-full"><a href="https://img.hjyl.org/uploads/2023/09/20230916224620.png"><img loading="lazy" decoding="async" width="616" height="437" src="https://img.hjyl.org/uploads/2023/09/20230916224620.png"  class="wp-image-4635" title="20230916224620.png" alt="20230916224620.png" /></a><figcaption class="wp-element-caption">导入数据表</figcaption></figure>



<p>好了，如此，数据库就替换完了。如果你还想导出来的话，可以到phpmyadmin导出，或者在ssh里使用命令完成：</p>



<pre class="wp-block-code"><code>mysqldump -uroot -p freshrss|gzip > /var/lib/mysql/freshrss.sql.gz   #回车输入密码</code></pre>



<p>这样在/docker/mysql下就能看到你导出来的数据库备份文件了。</p>



<p>参考资料：<br>https://www.bilibili.com/video/BV1Sh4y1y7X6/<br>https://juejin.cn/post/7041468609943568415</p>
<div id="content-copyright"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;font-size: 13px;">版权声明: </span><span style="font-size: 13px;">本文采用 <a href="https://hjyl.org/go/aHR0cHM6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzMuMC8=" rel="nofollow" target="_blank">BY-NC-SA</a> 协议进行授权，如无注明均为原创，转载请注明转自 <a href="https://hjyl.org">皇家元林</a><br>本文链接: <a rel="bookmark" title="恢复MySQL.ibd数据库" href="https://hjyl.org/mysql-ibd-recovery/">恢复MySQL.ibd数据库</a></span></div>]]></content:encoded>
					
					<wfw:commentRss>https://hjyl.org/mysql-ibd-recovery/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>黑群晖 / docker / Tiny Tiny RSS</title>
		<link>https://hjyl.org/nas-docker-tiny-tiny-rss/</link>
					<comments>https://hjyl.org/nas-docker-tiny-tiny-rss/#comments</comments>
		
		<dc:creator><![CDATA[皇家元林]]></dc:creator>
		<pubDate>Wed, 11 Jan 2023 08:17:48 +0000</pubDate>
				<category><![CDATA[元林手札]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[FreshRSS]]></category>
		<category><![CDATA[RSS订阅]]></category>
		<category><![CDATA[Tiny Tiny RSS]]></category>
		<category><![CDATA[黑群晖]]></category>
		<guid isPermaLink="false">https://hjyl.org/?p=4395</guid>

					<description><![CDATA[自从升级了黑群晖到7.1版本之后，freshrss订阅就没那么顺利了，经常出现感叹号，订阅失败的情况。于是乎就 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>自从升级了黑群晖到7.1版本之后，freshrss订阅就没那么顺利了，经常出现感叹号，订阅失败的情况。于是乎就想折腾一下Tiny Tiny RSS，之前折腾过，因为数据库的问题，而且官方自2011年开始不支持普通的环境安装，就放弃了。</p>



<p>网上用群晖docker安装TTRSS的教程不多，而且还恶心人要花钱买，不过好在重点都能看到，终于搞定了。此文记录一下，留给有缘人！</p>



<p>TTRSS支持PostgreSQL 或者 MySQL数据库，MySQL数据库繁琐的很，此文重点说下PostgreSQL，在群晖里安装很方便。</p>



<p>推荐docker镜像：<br>1、nornagon/postgres：PostgreSQL数据库服务<br>2、fischerman/docker-ttrss：TTRSS的镜像服务</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="991" height="569" src="https://img.hjyl.org/uploads/2023/01/20230111145857.png"  class="wp-image-4396" title="20230111145857.png" alt="20230111145857.png" /><figcaption class="wp-element-caption">docker镜像</figcaption></figure>
</div>


<p>一、安装PostgreSQL数据库服务</p>



<p>双击已经下载好的nornagon/postgres，直接创建，无需配置，只需要选中自动重启选项即可。</p>



<p>二、安装TTRSS</p>



<p>首先，在共享文件夹docker下新建一个文件夹，随便命名，比如TTRSS，再TTRSS下新建一个文件夹feed-icons，设置feed-icons属性里的权限，添加everyone用户，授予读取和写入的权限。当然你不新建feed-icons文件夹也行，直接赋予TTRSS文件夹上面的权限即可。</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://hjyl.org/?attachment_id=4397"><img loading="lazy" decoding="async" src="https://img.hjyl.org/uploads/2023/01/20230111150457.png"  class="wp-image-4397" width="621" height="436" title="20230111150457.png" alt="20230111150457.png" /></a><figcaption class="wp-element-caption">TTRSS添加权限</figcaption></figure>
</div>


<p>其次，双击已经下载好的fischerman/docker-ttrss镜像，只需要设置两个关键点，①环境里的SELF_URL_PATH的值为TTRSS的网址，如果你是局域网网址就填局域网址，如果你直接绑定了域名，就填域名网址；②链接里添加刚才启动的数据库服务，值为db，注意一定是db，其他值都不行。</p>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><a href="https://hjyl.org/?attachment_id=4398"><img loading="lazy" decoding="async" width="1045" height="592" data-id="4398" src="https://img.hjyl.org/uploads/2023/01/20230111150555.png" alt="环境变量配置" class="wp-image-4398" title="20230111150555.png" /></a><figcaption class="wp-element-caption">环境变量配置</figcaption></figure>



<figure class="wp-block-image size-large"><a href="https://hjyl.org/?attachment_id=4399"><img loading="lazy" decoding="async" width="1015" height="576" data-id="4399" src="https://img.hjyl.org/uploads/2023/01/20230111150700.png" alt="链接变量配置" class="wp-image-4399" title="20230111150700.png" /></a><figcaption class="wp-element-caption">链接变量配置</figcaption></figure>
</figure>



<p>端口那块，如果你不想自动分配，可以填一个固定的端口，譬如8080。</p>



<p>启动之后，你就可以打开SELF_URL_PATH后面的那个网址访问TTRSS服务了。默认用户名admin，密码password。</p>



<figure class="wp-block-table is-style-stripes has-small-font-size"><table class="has-fixed-layout"><tbody><tr><td></td><td class="has-text-align-left" data-align="left"><strong>FreshRSS</strong></td><td><strong>TTRSS</strong></td></tr><tr><td>优点</td><td class="has-text-align-left" data-align="left">1、界面UI简洁，好看，很容易习惯；<br>2、安装简单，无需繁琐的配置；<br>3、支持自主搭建LNMP环境安装服务；<br>4、支持sqlite数据库，简单不用配置；<br>5、出现订阅失败的网站可以强制订阅。</td><td>1、主题不多，但还算简洁，跟freshrss差不多；<br>2、订阅推送时间正常；<br>3、订阅失败能找到原因；<br>4、火狐浏览器导出备份正常；<br>5、听说有手机app支持，我没试过。</td></tr><tr><td>缺点</td><td class="has-text-align-left" data-align="left">1、像上面说的，突然出现无法订阅的情况，也不清楚什么原因；<br>2、订阅推送的时间貌似不太对，不知道是不是我配置的问题，一直没找到原因；<br>3、火狐浏览器导出备份出现错误，chrome内核的浏览器正常；</td><td>1、安装复杂，我是折腾了很久才搞定的；<br>2、订阅失败的网站不能强制订阅；<br>3、不支持自主搭建LNMP环境安装；</td></tr></tbody></table><figcaption class="wp-element-caption">FreshRSS与TTRSS优缺点比较</figcaption></figure>



<p>个人感觉，就这样了！主要是安装一个这样的服务，在所有平台都可以用。如有不同意见，欢迎指教！</p>
<div id="content-copyright"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;font-size: 13px;">版权声明: </span><span style="font-size: 13px;">本文采用 <a href="https://hjyl.org/go/aHR0cHM6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzMuMC8=" rel="nofollow" target="_blank">BY-NC-SA</a> 协议进行授权，如无注明均为原创，转载请注明转自 <a href="https://hjyl.org">皇家元林</a><br>本文链接: <a rel="bookmark" title="黑群晖 / docker / Tiny Tiny RSS" href="https://hjyl.org/nas-docker-tiny-tiny-rss/">黑群晖 / docker / Tiny Tiny RSS</a></span></div>]]></content:encoded>
					
					<wfw:commentRss>https://hjyl.org/nas-docker-tiny-tiny-rss/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
