本系列文章记录了升级Ubuntu 16.04的布署过程

回到目录

10. Dokuwiki

配置文件如下

Alias /dokuwiki "/opt/dokuwiki"

<Directory "/opt/dokuwiki">
AllowOverride All
Require all granted
</Directory>

将虚拟目录配置文件链接到Apache2的可用的配置文件库中

sudo ln -s /opt/dokuwiki/dokuwiki.conf /etc/apache2/conf-available/dokuwiki.conf

启用此配置文件

sudo a2enconf dokuwiki

重启Apache2服务

sudo systemctl restart apache2.service

注意,1604版本更新到了PHP7,如果使用了Dokuwiki的Markdowup插件,注意下载其PHP7兼容版本。

20. Phpnuget

配置文件如下

Alias /nuget "/opt/phpnuget"

<Directory "/opt/phpnuget">
AllowOverride All
Require all granted
</Directory>

安装系统要求模块

sudo apt install php7.-zip

PHP 7.0 - ZipArchive Library is missing or disabled

将虚拟目录配置文件链接到Apache2的可用的配置文件库中

sudo ln -s /opt/phpnuget/phpnuget.conf /etc/apache2/conf-available/phpnuget.conf

启用此配置文件

sudo a2enconf phpnuget

启用rewrite模块

sudo a2enmod rewrite

重启Apache2服务

sudo systemctl restart apache2.service

30. RSS 爬虫

这是我用C#语言编写的获取目标网站的规定格式信息的采集工具,配置文件如下

Alias /rssspider "/opt/rssspider"

MonoApplications "/rssspider:/opt/rssspider"

<Directory "/opt/rssspider">
AllowOverride All
Require all granted
SetHandler mono
</Directory>

将虚拟目录配置文件链接到Apache2的可用的配置文件库中

sudo ln -s /opt/rssspider/rssspider.conf /etc/apache2/conf-available/rssspider.conf

启用此配置文件

sudo a2enconf rssspider

重启Apache2服务

sudo systemctl restart apache2.service

40. Ting-Rss

备份数据库

sudo mysqldump  -u root -p tt_rss --databases tt_rss --add-drop-database  > /opt/tt-rss/tt_rss20170117.sql

恢复数据库

mysql -u root -p
source /opt/tt-rss/tt_rss20170117.sql

安装系统要求模块

sudo apt install php7.-mbstring

配置文件如下

Alias /tt-rss "/opt/tt-rss"

<Directory "/opt/tt-rss">
AllowOverride All
Require all granted
</Directory>

将虚拟目录配置文件链接到Apache2的可用的配置文件库中

sudo ln -s /opt/tt-rss/tt-rss.conf /etc/apache2/conf-available/tt-rss.conf

启用此配置文件

sudo a2enconf tt-rss

重启Apache2服务

sudo systemctl restart apache2.service

创建rss自动获取服务

[Unit]
Description=ttrss_backend
After=network.target mysql.service postgresql.service [Service]
User=www-data
ExecStart=/opt/tt-rss/update_daemon2.php [Install]
WantedBy=multi-user.target

复制到系统目录下

sudo cp /opt/tt-rss/ttrss_backend.service /etc/systemd/system/

启用服务

sudo systemctl daemon-reload
sudo systemctl enable ttrss_backend.service
sudo systemctl start ttrss_backend.service

tt-rss

Convert "run at startup" script from upstart to systemd for Ubuntu 16

A Database Backup Program

50. rTorrent+ruTorrent

安装rTorrent。当前最新版本为0.9.6

sudo apt install rtorrent

从官网下载配置文件模板并复制到当前用户根目录下。

wget https://github.com/rakshasa/rtorrent/blob/66a116841a70c1ea53aa895e5ff6a3b84c2b715a/doc/rtorrent.rc
cp rtorrent.rc ~/.rtorrent.rc

修改配置文件。我使用的配置如下,修改了【directory.default.set】,【session.path.set】,【dht.mode.set】,【protocol.pex.set】四处位置,并增加了【scgi_port】与【encoding_list】设置

# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable. # Maximum and minimum number of peers to connect to per torrent.
#
#throttle.min_peers.normal.set = 40
#throttle.max_peers.normal.set = 100 # Same as above but for seeding completed torrents (-1 = same as downloading)
#
#throttle.min_peers.seed.set = 10
#throttle.max_peers.seed.set = 50 # Maximum number of simultanious uploads per torrent.
#
#throttle.max_uploads.set = 15 # Global upload and download rate in KiB. "0" for unlimited.
#
#throttle.global_down.max_rate.set_kb = 0
#throttle.global_up.max_rate.set_kb = 0 # Default directory to save the downloaded torrents.
#
directory.default.set = ~/downloads/dw # Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
#
session.path.set = ~/downloads/dwse # Watch a directory for new torrents, and stop those that have been
# deleted.
#
#schedule2 = watch_directory,5,5,load.start=./watch/*.torrent
#schedule2 = untied_directory,5,5,stop_untied= # Close torrents when diskspace is low.
#
#schedule2 = low_diskspace,5,60,close_low_diskspace=100M # The ip address reported to the tracker.
#
#network.local_address.set = 127.0.0.1
#network.local_address.set = rakshasa.no # The ip address the listening socket and outgoing connections is
# bound to.
#
#network.bind_address.set = 127.0.0.1
#network.bind_address.set = rakshasa.no # Port range to use for listening.
#
#network.port_range.set = 6890-6999 # Start opening ports at a random position within the port range.
#
#network.port_random.set = no # Check hash for finished torrents. Might be usefull until the bug is
# fixed that causes lack of diskspace not to be properly reported.
#
#pieces.hash.on_completion.set = no # Set whether the client should try to connect to UDP trackers.
#
#trackers.use_udp.set = yes # Alternative calls to bind and ip that should handle dynamic ip's.
#
#schedule2 = ip_tick,0,1800,ip=rakshasa
#schedule2 = bind_tick,0,1800,bind=rakshasa # Encryption options, set to none (default) or any combination of the following:
# allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext
#
# The example value allows incoming encrypted connections, starts unencrypted
# outgoing connections but retries with encryption if they fail, preferring
# plaintext to RC4 encryption after the encrypted handshake
#
# protocol.encryption.set = allow_incoming,enable_retry,prefer_plaintext # Enable DHT support for trackerless torrents or when all trackers are down.
# May be set to "disable" (completely disable DHT), "off" (do not start DHT),
# "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
# The default is "off". For DHT to work, a session directory must be defined.
#
dht.mode.set = on # UDP port to use for DHT.
#
#dht.port.set = 6881 # Enable peer exchange (for torrents not marked private)
#
protocol.pex.set = yes # Set downlad list layout style. ("full", "compact")
#
#ui.torrent_list.layout.set = "full"
scgi_port = 127.0.0.1:5000
encoding_list=UTF-8

创建所需目录

mkdir ~/downloads/dw
mkdir ~/downloads/dwse

将下载目录配置为网站,方便后续HTTP访问

Alias /downloads "/home/ljz/downloads"

<Directory "/home/ljz/downloads">
Options Indexes
AllowOverride All
Require all granted
</Directory>

将虚拟目录配置文件链接到Apache2的可用的配置文件库中

sudo ln -s ~/downloads/downloads.conf /etc/apache2/conf-available/downloads.conf

启用此配置文件

sudo a2enconf downloads

重启Apache2服务

sudo systemctl restart apache2.service

创建下载服务

[Unit]
Description=rTorrent
After=network.target [Service]
Type=forking
User=ljz
ExecStart=/usr/bin/screen -d -m -fa -S rtorrent /usr/bin/rtorrent [Install]
WantedBy=default.target

复制到系统目录下

sudo cp /opt/ruTorrent-3.8/rt.service /etc/systemd/system/

启动服务

sudo systemctl daemon-reload
sudo systemctl enable rt.service
sudo systemctl start rt.service

从官网下载ruTorrent。当前最新版本为3.8版

wget https://github.com/Novik/ruTorrent/archive/v3.8.zip

解压至目标目录

sudo unzip v3..zip -d /opt/

添加Apache配置文件

Alias /ruTorrent "/opt/ruTorrent-3.8"

<Directory "/opt/ruTorrent-3.8">
AllowOverride All
Require all granted
</Directory>

将虚拟目录配置文件链接到Apache2的可用的配置文件库中

sudo ln -s /opt/ruTorrent-3.8/ruTorrent.conf /etc/apache2/conf-available/ruTorrent.conf

启用此配置文件

sudo a2enconf ruTorrent

重启Apache2服务

sudo systemctl restart apache2.service

Install ruTorrent + Plex on a headless Ubuntu Server 16.04 (Part 1)

systemd.service.

rTorrent

RTorrent/RuTorrent

rtorrent

ruTorrent Wiki

(转载)RTorrent 命令行使用说明

rtorrent - 强大的命令行BT客户端

rtorrent使用方法

Ubuntu 16.04应用布署小记的更多相关文章

  1. Ubuntu 16.04环境布署小记

    本系列文章记录了升级Ubuntu 16.04的布署过程 回到目录 10. 安装Mono, Xsp 当前版本16.04.1的系统源的Mono版本为4.2.1,如需使用最新版本(本文书写时稳定版本为4.6 ...

  2. Ubuntu 16.04系统布署小记

    前段时间趁着双11打折,又将阿里云主机续费了3年.之前布署的系统是Ubuntu 12.04,从系统发布到现在也有四年半了,其官方支持的生命周期也将止于明年春,且这在几年里出现了很多新的事物,我也需要跟 ...

  3. Ubuntu 16.04 安装Mysql 5.7 踩坑小记

    title:Ubuntu 16.04 安装Mysql 5.7 踩坑小记 date: 2018.02.03 安装mysql sudo apt-get install mysql-server mysql ...

  4. VNC实现Windows远程访问Ubuntu 16.04(无需安装第三方桌面)

    本文主要是讲解如果理由VNC实现Windows远程访问Ubuntu 16.04,其实网上有很多类似教程,但是很多需要安装第三方桌面(xfce桌面等等),而且很多人不太喜欢安装第三方桌面,很多人像笔者一 ...

  5. 入门系列之在Ubuntu 16.04使用Buildbot建立持续集成系统

    欢迎大家前往腾讯云+社区,获取更多腾讯海量技术实践干货哦~ 本文由angel_郁发表于云+社区专栏 介绍 Buildbot是一个基于Python的持续集成系统,用于自动化软件构建,测试和发布过程. 在 ...

  6. 入门系列之使用Sysdig监视您的Ubuntu 16.04系统

    欢迎大家前往腾讯云+社区,获取更多腾讯海量技术实践干货哦~ 本文由乌鸦 发表于云+社区专栏 介绍 Sysdig是一个全面的开源系统活动监控,捕获和分析应用程序.它具有强大的过滤语言和可自定义的输出,以 ...

  7. Windows + Ubuntu 16.04 双系统安装详细教程

    Windows + Ubuntu 16.04 双系统安装详细教程 2018年01月28日 16:43:19 flyyufenfei 阅读数:165619   发现了一篇好教程,果断转载了,以后用得着时 ...

  8. [k8s]k8s-ceph-statefulsets-storageclass-nfs 有状态应用布署实践

    k8s stateful sets storageclass 有状态应用布署实践v2 Copyright 2017-05-22 xiaogang(172826370@qq.com) 参考 由于网上的文 ...

  9. 【Ubuntu】xrdp完美实现Windows远程访问Ubuntu 16.04

    步骤一.下载TigerVNC Server软件包 下载地址:Tigervnc Deb软件包(适用于Ubuntu 16.04.1 - 64位) 步骤二. 安装TigerVNC Server软件包 1.打 ...

随机推荐

  1. 关于iis8.5中发布的网站无法连接数据库的解决方案。

    发布的网站在浏览时出现如下提示: “/”应用程序中的服务器错误. 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误.未找到或无法访问服务器.请验证实例名称是否正确并且 SQL ...

  2. IBM 3090 with Vector Facility

    COMPUTER OR GANIZATION AND ARCHITECTURE DESIGNING FOR PERFORMANCE NINTH EDITION

  3. 几何服务,cut功能,输入要素target(修改前)内容。

    几何服务,cut功能测试,输入要素target(修改前)内容. {"geometryType":"esriGeometryPolyline","geo ...

  4. JSON和数据集互相转换单元

    如题......只是一个单元, 为了测试JSON单元性能的... 具体测试结果参考: http://www.cnblogs.com/hs-kill/p/3668052.html 代码中用到的Seven ...

  5. django对数据查询结果进行排序的方法

    在你的 Django 应用中,你或许希望根据某字段的值对检索结果排序,比如说,按字母顺序. 那么,使用 order_by() 这个方法就可以搞定了. ? 1 2 >>> Publis ...

  6. GridView 实现LinkButton下载文件/附件

    <asp:TemplateField > <ItemTemplate> <asp:LinkButton ID="lbtnDownFile" runat ...

  7. 视图UIView的大小和位置属性详解

    UIView类中定义了三个属性,分别是frame.bounds与center属性: IKit中的坐标系X轴正方向为水平向右,Y轴正方向为竖直向下. frame属性指的是视图在其父视图坐标系中的位置与尺 ...

  8. google play iap 常见问题

    1.测试阶段query时获取的sku对象为空 解:测试阶段只能使用如下sku // private static final String SKU_TEST = "android.test. ...

  9. 视觉机器学习读书笔记--------SVM方法

    SVM是一种二类分类模型,有监督的统计学习方法,能够最小化经验误差和最大化几何边缘,被称为最大间隔分类器,可用于分类和回归分析.支持向量机的学习策略就是间隔最大化,可形式化为一个求解凸二次规划的问题, ...

  10. js中的 && 和 ||

    js里面&&和||用法容易绕进去. 总结一下,遵循短路原则. &&就是去找false的选项,||就是去找true的选项. 比如 a&&b 如果 a为fa ...