CentOS 7 架設 Transmission

CentOS 7 架設 Transmission

希望能夠在任意地點經由網頁上傳 torrent,Server 會自動下載檔案。

安裝 Transmission
1
yum install transmission transmission-daemon
啟動再關閉,系統會自行產生設定檔
1
2
systemctl start transmission-daemon
systemctl stop transmission-daemon
設為開機即啟動
1
systemctl enable transmission-daemon
修改設定檔
1
vi /var/lib/transmission/.config/transmission-daemon/settings.json
設定檔內修改登入資訊
1
2
3
"rpc-authentication-required": true,
"rpc-password": " 密碼 ",
"rpc-username": " 帳號 ",

使用 Apache Proxy 導向 Transmission 所在的 port(可參考Apache mod_proxy)。

修改 Apache 設定
1
vi /etc/httpd/conf/httpd.conf
在 port 80 的 VirtualHost 內加入以下內容
1
2
3
RewriteRule /transmission[/]?$ /transmission/web [R=permanent]
ProxyPass /transmission http://localhost:9091/transmission
ProxyPassReverse /transmission http://localhost:9091/transmission
重啟服務
1
2
systemctl start transmission-daemon
systemctl start httpd.service

連線至 http://localhost/transmission 即可登入使用。

評論