centos安装tinyrss

1.在网站根目录,执行git clone

1
2
git clone https://tt-rss.org/git/tt-rss.git tt-rss
chmod 770 tt-rss 

2.访问TT-RSS安装程序

http://yoursite/tt-rss/install/ 在页面配置数据库参数,保存自动生成的config.php 可能还需按以下步骤启用php fileinfo:

1
2
3
4
5
6
7
8
yum install -y php-devel
cd /root/lnmp1.4/src 
tar -jxvf php-5.6.36.tar.bz2 
cd php-5.6.36/ext/fileinfo/ 
/usr/local/php/bin/phpize 
./configure --with-php-config=/usr/local/php/bin/php-config 
make & make install 
vim /usr/local/php/etc/php.ini

最后一行加上extension=fileinfo.so 重启PHP,然后在phpinfo中检查是否开启fileinfo。

3.配置自动更新

通过apache或者Nginx的运行用户来执行,如apache或者www等。

1
crontab -u www -e

添加如下内容:

1
*/30 * * * * /usr/local/php/bin/php /data/wwwroot/

安装TT-RSS的目录

1
/update.php --feeds --quiet

上方的/usr/local/php/bin/php也可能为/usr/bin/php,具体以php安装目录为准; 安装目录以config.php中的路径为准; */30 * * * *`代表每30分钟执行一次更新,你也可以按自己需求设定其他间隔。

4.修改密码

首次登录的用户名和密码为username: admin, password: password 必须及时修改。同时创建新的使用者账户作为日常使用,与管理员账户隔开。

5.安装主题

只需将CSS文件放入themes目录下,并在后台进行选择即可。

1
2
3
tt-rss-feedly-theme 
https://github.com/levito/tt-rss-feedly-theme 
clean-greader https://github.com/naeramarth7/clean-greader 

以安装tt-rss-feedly-theme为例,先下载和解压主题

1
2
wget https://github.com/levito/tt-rss-feedly-theme/archive/master.zip
unzip master.zip 

复制主题至themes子目录:

1
2
cp -r tt-rss-feedly-theme-master/feedly.css /themes 
cp -r tt-rss-feedly-theme-master/feedly /themes 

后台启用即可

6.使用拓展

7.配置 RSS 全文输出

注册Mercury 的全文输出服务,获得 API 密钥: https://mercury.postlight.com/web-parser/ 安装全文输出插件与安装主题完全相同,直接复制到plugins子目录即可:

1
2
git clone https://github.com/WangQiru/mercury/fulltext.git 
cp -r mercury/fulltext /plugins 

安装后,到 Tiny Tiny RSS 的设置页面中启用名为mercury_fulltext的插件。 这时,在设置页面的 Feeds 选项卡下,就会多出一个该插件的设置区域,将之前获得的 Mercury API 密钥填入文本框中,并点击 Save 保存配置。 在订阅源管理中,点击需要获取全文的订阅源,在弹出的 Edit Feed 对话框中,勾选 Plugins 选项卡中的 Get fulltext via Mercury Parser。

8.安装插件Fever

模拟为一个自建 RSS 工具,得到包括 Reeder、Unread 等更多客户端的支持。

1
2
git clone https://github.com/rannen/tinytinyrss-fever-plugin.git
cp -r fever /plugins

启用名为 fever 的插件。保存后,再次进入设置时,Preference 选项卡下会多出一个名为 Fever Emulation 的板块。 在该板块的文本框中,设置一个专用于该插件的密码,然后点击 Save。 该文本框下方同时给出了一个独立的服务器地址,其格式类似于http://rss.example.org/plugins/fever/, 将其记下以备后用。