奇诺分享 | ccino.net

  • 首页
  • VPS
    • VPS申请
    • VPS配置
    • 科学上网
  • 网站建设
    • WordPress
  • 程序猿
    • 开发工具
    • 微服务
    • 容器
    • 分布式
    • 数据库
  • 杂项
  • 关于
  • Privacy Policy
生活不只是眼前的苟且,还有诗和远方!
  1. 首页
  2. 网站建设
  3. 正文

FreshRSS安装教程

2018年4月17日 3030点热度 0人点赞 2条评论

前言

假设服务器上已经安装并可正常运行网页服务器,如Apache或Nginx等
本文档中环境:
Ubuntu 17.10 x64
Apache2 网站根目录/var/www/html/

有关FreshRSS

  • 官网: https://freshrss.org
  • 演示: https://demo.freshrss.org/
  • Github: https://github.com/FreshRSS/FreshRSS

安装

安装依赖包

FreshRSS需要以下依赖,如果已经安装了请无视。

sudo apt-get isntall git -y
# For Ubuntu <= 15.10, Debian <= 8 Jessie
sudo apt-get install php5 php5-curl php5-gmp php5-intl php5-json php5-sqlite -y
sudo apt-get install libapache2-mod-php5 -y	#For Apache
sudo apt-get install mysql-server mysql-client php5-mysql -y	#Optional MySQL database
sudo apt-get install postgresql php5-pgsql -y	#Optional PostgreSQL database

# For Ubuntu >= 16.04, Debian >= 9 Stretch
sudo apt install php php-curl php-gmp php-intl php-mbstring php-sqlite3 php-xml php-zip -y
sudo apt install libapache2-mod-php -y	#For Apache
sudo apt install mysql-server mysql-client php-mysql -y 	#Optional MySQL database
sudo apt install postgresql php-pgsql -y	#Optional PostgreSQL database

 

安装完毕后,重启网页服务器

service restart apache2

安装FreshRSS本体并授权

安装

# For FreshRSS itself (git is optional if you manually download the installation files)
cd /usr/share/
sudo apt-get install git
sudo git clone https://github.com/FreshRSS/FreshRSS.git
cd FreshRSS

 

授予权限

# Set the rights so that your Web server can access the files
sudo chown -R :www-data . && sudo chmod -R g+r . && sudo chmod -R g+w ./data/
# If you would like to allow updates from the Web interface
sudo chmod -R g+w .

 

链接到网页服务的目录

# Publish FreshRSS in your public HTML directory
sudo ln -s /usr/share/FreshRSS/p /var/www/html/FreshRSS
# Navigate to http://example.net/FreshRSS to complete the installation
# (If you do it from localhost, you may have to adjust the setting of your public address later)
# or use the Command-Line Interface

 

初始化

打开网站http://yourIP/FreshRSS,进行基本配置,不赘述。
第二页为检查依赖及权限,请根据信息完善。

更新FreshRSS

# Update to a newer version of FreshRSS with git
cd /usr/share/FreshRSS
sudo git pull
sudo chown -R :www-data . && sudo chmod -R g+r . && sudo chmod -R g+w ./data/

 

使用第三方阅读器

服务端配置

开启并设置密码

在设置->管理->认证中勾选“允许API访问”并提交

在设置->配置->用户账户中设置“API密码”并提交

检查配置

点击“API密码”框旁边的链接,检查配置。
在接下来的页面中点击第一个链接 “Check full server configuration”

  • 如果你看到了PASS,那么配置已经完成。
  • 如果你得到了错误,如Bad Request或Not Found,那么你的网页服务器可能不接受%2F作为/
    错误处理

    打开Apache的配置文件
    我在这里使用了虚拟主机配置,使得访问rss.example.xyz等效于访问example.xyz/FreshRSS
    在配置中添加一行

    AllowEncodedSlashes On

     

随后重启Apache,即可解决问题。

这时候请使用rss.example.xyz重复上述步骤检查配置,得到PASS就OK啦。

客户端配置

这里安利一下一款好用的RSS阅读器FeedMe,下载渠道:酷安ORGoogle Play
打开后点击FreshRSS
域名中填写刚才在配置检查页中出现的链接,形如http://freshrss.example.net/p/api/greader.php
Username与密码按照先前API设置填写。
完成后登录即可享用。

参考资料与相关链接

  • FreshRSS
  • FreshRSS/README
  • FreshRSS/06_Mobile_access
  • AllowEncodedSlashes Directive

 

本文出自:http://blog.seanchao.xyz/2018/02/FreshRSS-Installation

相关文章

  • 了解RSS语法,你也可以做自己的RSS阅读器

  • RustRssBot: Telegram 订阅机器人使用指南

  • 浅谈几种常用负载均衡架构

  • 系统吞吐量(TPS)、用户并发量、性能测试概念和公式

  • 三个免费的SSL证书在线监控和到期提醒服务-再也不用担心证书过期

标签: FreshRSS RSS
最后更新:2018年4月17日

奇诺分享 | ccino.net

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

  • 散森

    谢谢。文章很有用。我的FreshRSS能正常使用了。

    2020年4月16日
    回复
    • 奇诺分享 | ccino.net

      @散森 客气,有用就好。RSS我个人很喜欢,因为每天一个地方能获取很多有用信息。

      2020年4月16日
      回复
  • razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
    取消回复

    此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据。

    文章目录
    • 前言
      • 有关FreshRSS
    • 安装
      • 安装依赖包
      • 链接到网页服务的目录
      • 初始化
    • 更新FreshRSS
    • 使用第三方阅读器
      • 服务端配置
      • 客户端配置
    • 参考资料与相关链接
    最近评论
    奇诺分享 | ccino.net 发布于 2 年前(11月22日) 惭愧~~我没用Windows版本的,所以帮不了你~~
    chenyuan 发布于 2 年前(11月01日) 系统代理按键打开了没过几秒又自动观上了,导致一直打开不了,是什么问题呢?感谢大佬,请帮帮忙!谢谢!
    奇诺分享 | ccino.net 发布于 3 年前(07月14日) 就是给同一局域网的其他设备共享使用。
    xulingran 发布于 3 年前(07月12日) 请问“启用局域网共享代理功能”是什么意思呢
    奇诺分享 | ccino.net 发布于 3 年前(05月23日) 我没遇到此问题,要不你到官方开case问问看?
    标签聚合
    SSL 网站建设 证书 插件 WordPress VPS https 优化

    COPYRIGHT © 2021 ccino.net. ALL RIGHTS RESERVED.

    Theme Kratos Made By Seaton Jiang