奇诺分享 | ccino.net

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

FreshRSS安装教程

2018年4月17日 1210点热度 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

本作品采用 知识共享署名 4.0 国际许可协议 进行许可
标签: FreshRSS RSS
最后更新:2018年4月17日

奇诺分享 | ccino.net

点赞
< 上一篇
下一篇 >

文章评论

  • 散森

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

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

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

      2020年4月16日
      回复
  • 取消回复

    本站推荐

    新手建站五步

    本博客TG频道,欢迎订阅:https://t.me/CCINOorg 

        大家准备建站时,肯定和奇诺一样无从着手,不用着急。按照以下“五步”就能方便的搭建好一个基于VPS的网站。“第六步”为高级功能,大家可以按需选择。

    第一步,基础知识:

    • 虚拟主机、云主机和VPS的区别
    • Xen、OpenVZ、KVM三大VPS技术优劣势详解
    • Apache、nginx 、lighttpd性能比较
    第二步,VPS申请:
    • 新手用户搬瓦工VPS购买图文指导教程
    • 免费试用vultr搭建及vultr服务器性能测试
    第三步,一键web面版搭建:
    • 宝塔Linux面板 – 3月29日更新 – 3.5版
    • 简单实用的VPS主机面板–宝塔
    第四步,域名申请:
    • Namesilo VS Godaddy域名注册的对比优势
    • Namesilo新域名注册图文教程
    第五步,CMS安装配置:
    • WordPress入门 之 如何安装WordPress
    • WordPress程序文件说明
    第六步,高级功能:
    • https的研究与总结
    • Let’s Encrypt – 免费时新的 SSL 证书
    • 常用Linux VPS/服务器(OpenVZ/KVM/XEN)加速、优化网络速度工具总结
       
    最新 热点 随机
    最新 热点 随机
    centos sqlite3安装及简单命令 Clash for Windows 使用简介 解决梯子在GFWList模式下不能正常看流媒体的问题 Sublime Text3—自带快捷键介绍 Sublime Text 3截止2019.04.08最新版本破解 3207 Sublime Text3搭建PHP开发环境
    使用 VPS 搭建自己的 Telegram RSS 中文订阅机器人 白话谈 Git 建立自己的服务状态页 WordPress死链接检测工具-Broken Link Checker和Xenu’s Link Sleuth Linux如何查找大文件或目录总结 Sublime Text3搭建PHP开发环境
    标签聚合
    插件 VPS 证书 SSL https 网站建设 优化 WordPress

    COPYRIGHT © 2021 奇诺分享 | ccino.net. ALL RIGHTS RESERVED.

    THEME KRATOS MADE BY VTROIS