红联Linux门户
Linux帮助

centos5.5打造下载机(一)

发布时间:2010-07-09 14:41:38来源:红联作者:堕落kiss
[i=s] 本帖最后由 堕落kiss 于 2010-7-9 15:05 编辑 [/i]

计划一共是2篇,这篇主要是说centos5.5的安装和rtorrent的安装。
需要的软件:
centos 5.5安装盘
主要是这几个了。下载的时候去google搜索吧
---------------------------------------------------------------------------------
(一)安装centos5.5:
把bios设置成光盘启动,进入centos5.5的页面,直接回车,弹出是否验证光盘,要是自己盘没有问题就点skip。
下面就是按自己喜好安装,到了选择安装软件的时候 Desktop-Gnome取消,不装这个,做下载机。不用gui的 。然后点customize now 。定制软件的时候 gcc什么的要装(Development libraries, Development Tools Administraros tools system tools,语言先上chinese )。然后按照提示一步一步装完了。
到现在系统装完了,下面装rtorrent,这个软件是下bt用的,我用着感觉还不错.
---------------------------------------------------------------------------------

需要的软件:
rtorrent-0.8.6
libtorrent-0.12.6
libsigc++-2.2.8
curl-7.20.1
xmlrpc-c-1.06.40
rutorrent-3.1
php-5.2.13.tar
lighttpd-1.4.23
和上边说的一样,去google找吧 
(二)装rtorrent加web管理
我的安装软件全的/root/rtorrent下面 下面开始安装.[code]yum install gcc gcc-c++ ncurses ncurses-devel libtool automake openssh openssl-devel
[/code]先装下必要软件。
(1)装libsigc++-2.2.8[code]cd /usr/local/src/
tar -xvf /root/rtorrent/libsigc++-2.2.8.tar
cd libsigc++-2.2.8/
./configure --prefix=/usr
make
make install[/code]到现在装完了libsigc++了
(2)安装curl-7.20.1[code]cd /usr/local/src/
tar -xvf /root/rtorrent/curl-7.20.1.tar
cd curl-7.20.1
./configure --prefix=/usr
make
make install[/code][/code]
(3)安装librtorrent[code]cd /usr/local/src/
tar -xvf /root/rtorrent/libtorrent-0.12.6.tar
cd libtorrent-0.12.6
./autogen.sh
./configure --prefix=/usr
make
make install[/code]这个装的时候可能有错误解决方法[code]vi libtool[/code]在VI中shift+: 输入[code]%s/$echo/$ECHO/g[/code]在从新make就好了
(4)安装xmlrpc-c-1.06.40[code] tar -xvf /root/rtorrent/xmlrpc-c-1.06.40.tar
cd xmlrpc-c-1.06.40/
./configure --disable-cplusplus
make
make install
[/code](5)安装rtorrent[code] tar -xvf /root/rtorrent/rtorrent-0.8.6.tar
cd rtorrent-0.8.6/
./configure --prefix=/usr --with-xmlrpc-c
make
make install
[/code]到现在装完了可以用[code]screen rtorrent[/code]运行了,下面开始弄web管理了
(6)装php[code]yum install libxml2 libxml2-devel pcre-devel
tar -xvjf /root/rtorrent/php-5.2.13.tar.bz2
cd php-5.2.13/
./configure --prefix=/usr/local/php --enable-fastcgi --enable-force-cgi-redirect --enable-mbstring
make
make install
cp php.ini-dist /usr/local/php/etc/php.ini
[/code](7)装lighttpd(我这里没用apache)[code]tar -xvf /root/rtorrent/lighttpd-1.4.23.tar
cd lighttpd-1.4.23
./configure --prefix=/usr/local/lighttpd
make
make install[/code]下面建立3个目录[code]mkdir /usr/local/lighttpd/conf
mkdir /usr/local/lighttpd/www/
mkdir /usr/local/lighttpd/logs/
[/code][code]cd /root/rtorrent
tar -xvf rutorrent-3.1.tar
mv rutorrent /usr/local/lighttpd/www/rturrent[/code]把附件上lighttpd.conf复制到/usr/local/lighttpd/conf里
把附件上的lighttpdpassword改名为.lighttpdpassword就是前面加了个点.然后复制到/usr/local/lighttpd中
在把rtorrent.rc改名为.rtorrent.rc同样是前面加上个点,复制到你的用户的主目录(root就是/root下),然后建立文件夹[code]mkdir -r Download/.session/[/code](8)启动服务
lighttpd -f起到web服务器
screen rtorrent 打开之后就关了终端.
在游览器中 http://yourIP:/rtorrent
修改/usr/local/lighttpd下的ighttpdpassword是你登录的密码
---------------------------------------------------------------------------------
写的不好大家见谅,那里写的不对大家多多指教,下一篇我正在想是写amule还是mldoney。还写一些防火墙设置和如何获取电驴的hightID。
文章评论

共有 12 条评论

  1. dlchengzi 于 2014-05-06 17:41:53发表:

    楼主很厉害!

  2. jake712 于 2014-04-01 01:41:51发表:

    thx a lot

  3. xszhangld 于 2014-02-02 16:56:42发表:

    非常不错,希望能好好学下

  4. chushihua 于 2014-01-12 20:24:54发表:

    hehe俺来也

  5. cswang1980 于 2013-12-01 23:08:35发表:

    编译rtorrent未通过

  6. cswang1980 于 2013-12-01 22:36:24发表:

    还没开始弄,谢谢了

  7. hui21894558 于 2013-11-19 15:33:53发表:

    强吻,学习了!

  8. jerry520 于 2010-07-12 13:59:25发表:

    [i=s] 本帖最后由 jerry520 于 2010-7-12 14:01 编辑 [/i]

    不错,值得借鉴.你是javaeye里面的?

  9. cf630314 于 2010-07-11 11:46:50发表:

    感谢推荐centos~~~

  10. 王中云 于 2010-07-10 11:13:16发表:

    支持

  11. cf630314 于 2010-07-09 14:59:12发表:

    完整的看了一遍 还不是很懂

  12. cf630314 于 2010-07-09 14:45:11发表:

    楼主辛苦了 收藏先~~~ 顶~~~(6)m:b