惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
Blog — PlanetScale
Blog — PlanetScale
WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
U
Unit 42
I
InfoQ
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
V
Visual Studio Blog
B
Blog RSS Feed
Vercel News
Vercel News
F
Fortinet All Blogs
Know Your Adversary
Know Your Adversary
T
Troy Hunt's Blog
博客园 - 【当耐特】
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
A
About on SuperTechFans
Jina AI
Jina AI
小众软件
小众软件
T
Threatpost
有赞技术团队
有赞技术团队
人人都是产品经理
人人都是产品经理
The Hacker News
The Hacker News
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
Scott Helme
Scott Helme
B
Blog
腾讯CDC
Last Week in AI
Last Week in AI
P
Proofpoint News Feed
S
Schneier on Security
N
News and Events Feed by Topic
Microsoft Security Blog
Microsoft Security Blog
K
Kaspersky official blog
G
Google Developers Blog
T
Tor Project blog
PCI Perspectives
PCI Perspectives
S
Secure Thoughts
Google Online Security Blog
Google Online Security Blog
Latest news
Latest news
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
罗磊的独立博客

Rat's Blog - Docker

使用Searx搭建一个私人的搜索引擎平台,可展现Google/Bing等70多种搜索网站的搜索结果 - Rat's Blog 使用Docker快速安装Poste.io邮件服务器 - Rat's Blog 使用Docker安装Seafile云盘专业版,并配置域名及SSL证书 - Rat's Blog Linux VPS使用Docker快速部署一个CentOS系统容器 - Rat's Blog VPS使用GDList挂载Google Drive和OneDrive网盘,支持多个同时挂载 - Rat's Blog 使用Docker快速安装H5ai网盘、内置HTML5视频播放器DPlayer - Rat's Blog Linux VPS使用Docker快速安装Cloudreve多功能网盘 - Rat's Blog 使用Docker快速安装Aria2+AriaNg+h5ai,可离线BT下载和在线播放 - Rat's Blog 使用Docker快速安装FileRun多功能网盘 - Rat's Blog
使用Docker快速安装rTorrent和ruTorrent - Rat's Blog
博主: Rat's · 2018-07-09 · via Rat's Blog - Docker

说明:博主前些日子单独发了个rtorrent使用教程,查看:Linux VPS使用rtorrent下载BT种子,并在线观看,感觉缺少前端Web界面ruTorrent会让一些小白操作不是那么顺畅,而单独安装也有点麻烦,于是就在Docker商店找了个最新的rTorrentruTorrentDocker镜像,基本上一步就可以安装好,让我们1分钟就可以上手使用。

截图

请输入图片描述
请输入图片描述

安装

Docker地址:https://store.docker.com/community/images/diameter/rtorrent-rutorrent

1、安装Docker

#CentOS 6
rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum update -y
yum -y install docker-io
service docker start
chkconfig docker on

#CentOS 7、Debian、Ubuntu
curl -sSL https://get.docker.com/ | sh
systemctl start docker
systemctl enable docker

2、添加密码访问

#为了一次性操作到位,博主将这步放到了安装镜像之前,所以不用怀疑博主放错了顺序

一般Docker镜像安装完成后,我们就可以通过IP访问Web客户端,在默认的情况下是不带密码访问的,可以直接进入,如果想通过密码访问,我们需要进行如下操作。

在根目录新建一个文件夹dwon

#该文件夹必须为Docker镜像里/downloads文件夹映射对象
mkdir down

进入文件夹并新建.htpasswd文件,输入访问用户名和密码:

#进入文件夹
cd down

#以下3种加密任选其一,记得修改用户名rats和密码moerats
#crypt加密
printf "rats:$(openssl passwd -crypt moerats)\n" >> .htpasswd 

#apr1加密
printf "rats:$(openssl passwd -apr1 moerats)\n" >> .htpasswd

#MD5加密
printf "rats:$(openssl passwd -1 moerats)\n" >> .htpasswd

如果不需要密码访问的可直接跳过该步骤。

3、拉取镜像

docker run -dt --name rtorrent-rutorrent -p 8080:80 -p 49160:49160/udp -p 49161:49161 -v /root/down:/downloads diameter/rtorrent-rutorrent:latest

参数说明:

-p 8080:80:将内部Web 80端口映射到外部的8080端口,8080可自定义,之后通过http://ip:8080访问Web界面
-v /root/down:/downloads:将内部/downloads文件夹映射到外部的/root/down文件夹

#/downloads包含以下信息
下载文件夹、autodl-irssi配置文件、rtorrent暂存文件(watch/session)、rtorrent和ruTorrent配置文件、nginx和rtorrent日志等,将文件夹映射出来后,可直接在/root/down文件夹查看或修改

#其他参数大概说下,都可不变
DHT UDP端口:49160
传入连接端口:49161

最后访问地址:http://ip:8080,再输入之前设置的用户名和密码就可以访问Web界面了,建议下载BT的时候安装BBR或者锐速进行加速。


版权声明:本文为原创文章,版权归 Rat's Blog 所有,转载请注明出处!

本文链接:https://www.moerats.com/archives/673/

如教程需要更新,或者相关链接出现404,可以在文章下面评论留言。