<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      Ubuntu 16.04應用布署小記

      本系列文章記錄了升級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.0-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.0-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.8.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使用方法

      posted @ 2017-01-01 21:01  永遠的阿哲  閱讀(752)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 亚洲男人av天堂久久资源| 国产午夜三级一区二区三| 9久9久热精品视频在线观看| 亚洲午夜爱爱香蕉片| 真实国产精品视频400部| 亚洲欧美牲交| 国产精品中文字幕视频| 动漫av网站免费观看| 欧美熟妇xxxxx欧美老妇不卡| AV毛片无码中文字幕不卡| 国产午夜福利精品视频| 午夜久久一区二区狠狠干| 日韩人妻无码一区二区三区综合部 | 亚洲色偷偷色噜噜狠狠99| 999精品全免费观看视频| 亚洲欧美日韩综合久久久| 国产毛a片啊久久久久久保和丸| 日本xxxx色视频在线播放| 四虎永久免费精品视频| 吉安县| 国产成人理论在线视频观看| 猫咪社区免费资源在线观看| 亚洲欧美偷国产日韩| 国产乱色熟女一二三四区| 97se亚洲综合自在线| 漂亮人妻被强中文字幕久久| 一本一道av无码中文字幕麻豆| 修水县| 精品国产久一区二区三区| 国产日产免费高清欧美一区| 伊人久久大香线蕉AV网| 无码免费大香伊蕉在人线国产| 国产成人精品一区二三区在线观看| 国产人成精品一区二区三| 女同另类激情在线三区| 国产一级区二级区三级区| 中文字幕少妇人妻精品| 亚洲人成电影在线天堂色| 99久久夜色精品国产亚洲| 国产成人av免费观看| 伊人色综合一区二区三区|