之前的帖子:
http://www.hostloc.com/thread-344659-1-1.html
没有写教程,这回写了一个Debian下的简明教程:
Aria2 安装:
Debian 8系统 apt-get 安装Aria2
- apt-get update && apt-get install -y aria2
复制代码
创建目录:
- mkdir /root/.aria2
复制代码
修改配置文件: 下载配置文件:http://webdir.cc/aria2.conf
修改配置信息请参考:aria2.conf
保存到刚刚的目录上
- wget http://webdir.cc/aria2.conf /root/.aria2/aria2.conf
复制代码
下载dht.dat 到/root/.aria2/
- wget http://webdir.cc/dht.dat /root/.aria2/dht.dat
复制代码
执行命令:
- echo ” > /root/aria2.session
复制代码
执行命令,让aria2启动: 若没安装screen 请先
- apt-get install -y screen
复制代码
在安装好screen后执行
- screen -dmS aria2 aria2c –enable-rpc –rpc-listen-all=true –rpc-allow-origin-all -c
复制代码
wadir.php安装
下载地址:https://github.com/maysrp/webdir/archive/master.zip 解压下载文件后
将wadir.php上传到你的网站根目录
设置密码
- define(“PASS”,”123″);//
复制代码
只展示该目录以下的所有文件,通过添加禁止显示文件夹以及后缀文件来控制显示
例如:
- $this->notex=array(“php”,”js”,”tgz”);//不允许显示的后缀名文件
- $this->notdir=array(“a”,”phpmyadmin”);//不允许显示的文件夹
复制代码
访问 http://你的域名/wadir.php 即可
首先安装aria2
按照之前的aria2安装教程完成后,
http://www.hostloc.com/forum.php … &highlight=aria
安装完成后
再添加一个 webdir
https://github.com/maysrp/webdir
可以设置一个登入密码:
- define(“PASS”, “admin”);