wget http://download.utorrent.com/linux/utorrent-server-3.0-25053.tar.gz
tar -zxvf utorrent-server-3.0-25053.tar.gz
./utserver 如果发现报错
./utserver: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory
ldd utserver
linux-gate.so.1 => (0x007eb000)
libssl.so.0.9.8 => not found
libcrypto.so.0.9.8 => not found
libpthread.so.0 => /lib/libpthread.so.0 (0x00f14000)
libm.so.6 => /lib/libm.so.6 (0x00f54000)
librt.so.1 => /lib/librt.so.1 (0x0079d000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00b0e000)
libc.so.6 => /lib/libc.so.6 (0x00110000)
/lib/ld-linux.so.2 (0x006ab000)
从上可发现缺的是libssl.so.0.9.8和libcrypto.so.0.9.8
查找系统上可能有的包:
[root@dgljw utorrent-server-v3_0]# find / -name *libssl*
/usr/lib64/libssl.so.10
/usr/lib64/.libssl.so.1.0.1e.hmac
/usr/lib64/libssl.so.1.0.1e
/usr/lib64/.libssl.so.10.hmac
/usr/lib64/libssl.so
/usr/lib64/libssl3.so
/usr/lib64/pkgconfig/libssl.pc
/opt/openoffice4/program/libssl3.so
[root@dgljw utorrent-server-v3_0]# find / -name *libcrypto*
/usr/lib64/.libcrypto.so.1.0.1e.hmac
/usr/lib64/libcrypto.so.10
/usr/lib64/libcrypto.so.1.0.1e
/usr/lib64/libcrypto.so
/usr/lib64/pkgconfig/libcrypto.pc
/usr/lib64/.libcrypto.so.10.hmac
链接上去
ln -s /usr/lib64/libssl.so.10 /lib/libssl.so.0.9.8
ln -s /usr/lib64/libcrypto.so.10 /lib/libcrypto.so.0.9.8
file utserver
utserver: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped
我的电脑是64位程序,但貌似这个是32位的程序,可能这么链接还是不行的。用ldd命令再一看,果然如此。
[root@dgljw utorrent-server-v3_0]# ldd utserver
linux-gate.so.1 => (0x00f3f000)
libssl.so.0.9.8 => not found
libcrypto.so.0.9.8 => not found
libpthread.so.0 => /lib/libpthread.so.0 (0x0036c000)
libm.so.6 => /lib/libm.so.6 (0x00718000)
librt.so.1 => /lib/librt.so.1 (0x00aca000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00577000)
libc.so.6 => /lib/libc.so.6 (0x00110000)
/lib/ld-linux.so.2 (0x006ab000)
[root@dgljw utorrent-server-v3_0]# ./utserver
./utserver: error while loading shared libraries: libssl.so.0.9.8: wrong ELF class: ELFCLASS64
转为下载64位的utorrent
wget http://download.utorrent.com/linux/utorrent-server-3.0-ubuntu-10.10-27079.x64.tar.gz
tar -zxvf utorrent-server-3.0-ubuntu-10.10-27079.x64.tar.gz
yum install openssl098e -y
ln -s /usr/lib64/libssl.so.0.9.8e /usr/lib64/libssl.so.0.9.8
ln -s /usr/lib64/libcrypto.so.0.9.8e /usr/lib64/libcrypto.so.0.9.8
yum install screen
screen -d -m -L ./utserver
启动之后控制台所没有什么反应的,但进程确实已经起来
ps -ef | grep utserver
root 32361 1 0 10:15 ? 00:00:00 SCREEN -d -m -L ./utserver
root 32362 32361 0 10:15 pts/7 00:00:00 ./utserver
root 32494 32313 0 10:18 pts/8 00:00:00 grep utserver
http://localhost:8080/gui/,输入用户名为admin,密码为空
最终效果图如下: