centos yum install transmission 启动 设置
- font size decrease font size increase font size
- Print Email
ssh 安装
yum install transmission -y
会同时安装很多包
再來建立 Transmission 的設定檔目錄以及下載目錄(也可自訂啦)
mkdir -p /usr/local/transmission
mkdir -p /home/transmission
啟動Transmission產生Transmission的設定檔 ***此步驟要執行2次***
/usr/bin/transmission-daemon -g /usr/local/transmission
这里地址是有区别的 跟据个人不同
killall transmission-daemon
編輯Transmission設定檔
cp /usr/local/transmission/settings.json /usr/local/transmission/settings.json.bak
vi /usr/local/transmission/settings.json
比較重要的設定如下:
"blocklist-enabled": true, // 啟用黑名單
"dht-enabled": true, // 啟用DHT支援
"download-dir": "\/home\/transmission", // 下載位置,注意他的格式是\/目錄\/目錄
"encryption": 1, // 傳輸加密
"open-file-limit": 64, // 最大開啟檔案數量
"peer-limit-global": 250, // 最大連接數
"peer-limit-per-torrent": 100, // 單一任務連接數
"peer-port": 59999, // Transmission連接使用的port
"ratio-limit": 2.0000, // 上下傳比例達到多少停止做種
"ratio-limit-enabled": false, // 啟用上下傳比例
"rpc-enabled": true, // 啟用網頁管理模組 这个一定要启用
"rpc-bind-address": "0.0.0.0", // 指定IP位置
"rpc-port": 5566, // 指定網頁管理模組的port
"rpc-whitelist-enabled": true, // 啟用IP認證模式
"rpc-whitelist": "127.0.0.1,192.168.*.*,其他可以連的IP", // 指定認可的IP位置,以,區隔
"speed-limit-down": 100, // 限制下載速度,以KB/Sec計算
"speed-limit-down-enabled": false, // 啟用限制下載速度
"speed-limit-up": 100, // 限制上傳速度,以KB/Sec計算
"speed-limit-up-enabled": false, // 啟用限制上傳速度
"upload-slots-per-torrent": 50 // 每個Torrent的上傳連接數量,台灣跛腳的網路請設10
############################################################################################################
需要开启防火墙的话
如果是用在動物機上開啟檔案數量和連接數就不可以調太高,免得負載太高而罷工,
除了以上的設定值之外其他參數也可以參考官網的維基都有說明
最後在編輯一下iptables規則
/etc/init.d/iptables stop
iptables -A INPUT -p tcp --dport 5566 -j ACCEPT
iptables -A INPUT -p tcp --dport 59999:61000 -j ACCEPT
/etc/init.d/iptables save
/etc/init.d/iptables restart
全部搞定了,然後進入screen啟動Transmission
################################################################################################################################
启动 transmission
/usr/bin/transmission-daemon -g /usr/local/transmission
然後打開瀏覽器輸入http://IP或域名:端口
就能遠控Transmission了
( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0010 | 412536 | {main}( ) | .../index.php:0 |
2 | 0.1051 | 4262648 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.1051 | 4262648 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3095 | 11453632 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3101 | 11478072 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3107 | 11533400 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3110 | 11560800 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3183 | 11960432 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3183 | 11960432 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3276 | 12611136 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3276 | 12611136 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3315 | 12982176 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3338 | 13002544 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4566 | 15859784 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4566 | 15859784 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4604 | 16032720 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |
- Published in CentOS 6
- Read 4572 times
( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0010 | 412536 | {main}( ) | .../index.php:0 |
2 | 0.1051 | 4262648 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.1051 | 4262648 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3095 | 11453632 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3101 | 11478072 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3107 | 11533400 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3110 | 11560800 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3183 | 11960432 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3183 | 11960432 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3276 | 12611136 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3276 | 12611136 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3315 | 12982176 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3338 | 13002544 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4566 | 15859784 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4566 | 15859784 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4604 | 16032720 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |