centos yum install transmission 启动 设置

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

Last modified onSaturday, 05 January 2013 13:18

( ! ) 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
#TimeMemoryFunctionLocation
10.0010412536{main}( ).../index.php:0
20.10514262648Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.10514262648Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.309511453632Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.310111478072Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.310711533400Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.311011560800require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.318311960432K2ControllerItem->execute( ).../k2.php:64
90.318311960432K2ControllerItem->display( ).../BaseController.php:710
100.327612611136K2ControllerItem->display( ).../item.php:78
110.327612611136K2ControllerItem->display( ).../controller.php:19
120.331512982176Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.333813002544K2ViewItem->display( ).../ViewController.php:102
140.456615859784K2ViewItem->display( ).../view.html.php:742
150.456615859784K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.460416032720include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701

( ! ) 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
#TimeMemoryFunctionLocation
10.0010412536{main}( ).../index.php:0
20.10514262648Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.10514262648Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.309511453632Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.310111478072Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.310711533400Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.311011560800require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.318311960432K2ControllerItem->execute( ).../k2.php:64
90.318311960432K2ControllerItem->display( ).../BaseController.php:710
100.327612611136K2ControllerItem->display( ).../item.php:78
110.327612611136K2ControllerItem->display( ).../controller.php:19
120.331512982176Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.333813002544K2ViewItem->display( ).../ViewController.php:102
140.456615859784K2ViewItem->display( ).../view.html.php:742
150.456615859784K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.460416032720include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
back to top