CentOS 安装 Xware 迅雷远程下载程序
1、首先下载Xware软件
Xware1.0.31_x86_32_glibc.zip
2、解压 Xware1.0.31_x86_32_glibc.zip 至任意路径,该路径即为Xware的安装路径(本文安装路径为:/home/xware)
3、设置该路径的读写权限
chmod -R 775 /home/xware
4、安装依赖
yum -y install glibc.i686
yum -y install libz.so.1 --setopt=protected_multilib=false
5、启动Xware
cd /home/xware
./portal
- 启动成功后会得到 激活码,如下所示:
[root@service xware]# ./portal
initing...
try stopping xunlei service first...
killall: ETMDaemon: no process killed
killall: EmbedThunderManager: no process killed
killall: vod_httpserver: no process killed
setting xunlei runtime env...
port: 9000 is usable.YOUR CONTROL PORT IS: 9000starting xunlei service...
etm path: /home/xware
execv: /home/xware/lib/ETMDaemon.getting xunlei service info...
Connecting to 127.0.0.1:9000 (127.0.0.1:9000)THE ACTIVE CODE IS: atewri #激活码go to http://yuancheng.xunlei.com, bind your device with the active code.
finished.
6、访问并登陆 yuancheng.xunlei.com,然后输入激活码进行绑定
7、接着我们需要找一个空余容量比较大的目录来挂载下载目录(默认下载路径为 /mnt,容量较小)
- 创建下载保存路径
mkdir /home/download
- 进入 /mnt 目录,创建相同的下载文件夹
mkdir /mnt/download
- 挂载(将 /home/download 挂载到 /mnt/download)
mount --bind /home/download /mnt/download
8、设置开机挂载下载路径并启动 Xware
- 开机自动挂载下载目录
vi /etc/fstab
最后一行添加
/home/download /mnt/download none bind 0 0
- 开机自动运行远程迅雷
vi /etc/rc.d/rc.local
添加
/home/xware/portal 2>&1