ºìÁªLinuxÃÅ»§
Linux°ïÖú
µ±Ç°Î»ÖÃ: ºìÁªLinuxÃÅ»§ > Ubuntu

£Û¾­Ñé·ÖÏí£ÝÈÃÎÒÃÇÒ»ÆðÀ´¼ÓËÙ£ºÊ¹Óà apt-p2p ¸üРDebian/Ubuntu ϵͳ

·¢²¼Ê±¼ä:2011-04-18 01:17:14À´Ô´:ºìÁª×÷Õß:´ó±¦
[i=s] ±¾Ìû×îºóÓÉ ´ó±¦ ÓÚ 2011-4-18 01:22 ±à¼­ [/i]

P2P£¨Peer-to-Peer£©£¬¼´¡°µã¶Ôµã¼¼Êõ¡±£¬ÎÒÃÇÒ²¿ÉÒÔÀí½âΪÓû§ÓëÓû§Ö®¼äÖ±½ÓµÄÊý¾Ý´«µÝ£¬µäÐ굀 P2P ¼¼Êõ´ú±íÈ磺BT¡¢µç¿¡£
Óкܶà Linux Óû§Ôø¾­ÃÎÏë¹ý£¬Èç¹ûÄÜÏñ BT¡¢µç¿һÑùÀ´½øÐÐÈí¼þ°üµÄ¸ßËÙ´«µÝ£¬ÄǸöàºÃ°¡----²»µ«¼Ó¿ì×Ô¼ºµÄËٶȣ¬»¹ÄÜÓë±ðÈË·ÖÏí×Ô¼ºÏÂÔØÀ´µÄÈí¼þ°ü----ÕæÕý×öµ½¡°ÈËÈËΪÎÒ£¬ÎÒΪÈËÈË¡±¡£

apt-p2p ¾ÍÊÇÕâôһ¸öÃÎÏëÖеĶ«Î÷¡£
¹Ù·½ÍøÕ¾£ºhttp://www.camrdale.org/apt-p2p/

apt-p2p£¬¹ËÃû˼Ò壬¾ÍÊÇÓû§ÓëÓû§Ö®¼äÖ±½Ó½øÐÐ deb Èí¼þ°üµÄ´«µÝ¡£

ËüÓµÓÐ×Å P2P ¼¼ÊõµÄÓÅÊÆ£º
[list][*]¼´ÄÜ´ÓÓû§½ÚµãÖлñÈ¡Èí¼þ°ü£¬Í¬Ê±ÓÖÄÜ´Ó¹Ù·½Ô´ÖÐÏÂÔØ[*]ʹÓà apt-p2p µÄÈËÔ½¶à£¬Èí¼þ°üµÄ´«µÝЧÂʾÍÔ½¸ß¡¢ËÙ¶ÈÔ½¿ì[*]µÍ CPU ºÍÄÚ´æ×ÊÔ´ÏûºÄ[*]ÏȽøÐйþϣУÑ飬֮ºó²Å½øÐÐÈí¼þ°üµÄ´«µÝ£¬×î´óÏ޶ȵØÈ·±£°²È«¡¢±ÜÃâÏÂÔص½Ë𻵵İü[/list]
µ«Í¬Ñù£¬ËüÒ²´æÔÚ×Å P2P µÄ±×¶Ë£º
[list][*]Èç¹ûʹÓà apt-p2p µÄÈ˲»¶à£¬ËٶȿÉÄÜ»¹²»¼°Ô­×°µÄ apt-get¡£[*]¾¡¹Ü»úÂʷdz£Ð¡£¬µ«ÈÔ¿ÉÄÜÔâÓöµ½Ç±ÔڵĹþÏ£ÆÛÆ­£¬½ø¶øÒý·¢ÏµÍ³°²È«Òþ»¼[/list]
Ä¿Ç°£¬ÔÚÌ쳯¾³ÄÚʹÓà apt-p2p µÄÈ˵ÄÈ·²»¶à£¬ÕâÒ»Çé¿ö¿ÉÄÜÊÇÖÆÔ¼ apt-p2p ÔÚÌ쳯ÍƹãµÄ×îÖ÷ÒªÔ­Òò¡£
µ«Èç¹ûÈËÈ˶¼²»È¥Ö§³Ö apt-p2p£¬ÄÇ apt-p2p ÓÖÈçºÎ·¢Õ¹µÃÆðÀ´ÄØ£¿ÎÒÃÇÓÖÈçºÎ²ÅÄÜ»ñµÃ apt-p2p µÄ±ãÀûÄØ£¿
ËùÒÔ£¬±ÉÈËÔڴ˺ÅÕÙ´ó¼ÒÒ»ÆðÀ´Ê¹Óà apt-p2p£¡

²½Öè·½·¨£º
1¡¢×¼±¸ÒÀÀµ»·¾³[code]sudo apt-get install python python-apt python-twisted python-twisted-web2[/code]2¡¢°²×° apt-p2p[code]sudo apt-get install apt-p2p[/code]3¡¢ÐÞ¸ÄÈí¼þÔ´ÁÐ±í£¨×¢£ºµÚÈý·½Ô´²»ÓÃÒ²²»±ØÐ޸ģ©[code]sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo sed -i 's%http://%http://localhost:9977/%g' /etc/apt/sources.list[/code]4¡¢¸ù¾ÝÐèÒªÅäÖÃapt-p2p[code]sudo gedit /etc/apt-p2p/apt-p2p.conf[/code]ÆäÖУº
¡°PORT = ¡±Ö¸¶¨ apt-p2p ʹÓõĶ˿ڣ¬Ä¬ÈÏΪ¡°9977¡±¡£µ±È»£¬ÄãÒ²¿ÉÒÔÖ¸¶¨ËüΪ¡°9527¡±£¬Ö»ÊÇҪȷ±£Ó롶/etc/apt/sources.list¡·ÖеÄÐÞ¸ÄÖµÒ»ÖÂ
¡°UPLOAD_LIMIT = ¡±Ö¸¶¨×î´óÉÏ´«Ëٶȣ¬Ä¬ÈÏΪ¡°0¡±¼´²»ÏÞËÙ£¬½¨ÒéÉèÖÃΪ¡°10¡«50¡±£¨KB/Ã룩
¡°MIN_DOWNLOAD_PEERS = ¡±ÊÇÖ¸¶¨µ±¿ÉÓÃµÄ prees ½ÚµãÉÙÓÚ¶àÉÙʱ£¬²Å¿ªÊ¼´Ó¹Ù·½Ô´ÏÂÔØ£¬½¨ÒéʹÓÃĬÈÏÖµ¡°3¡±
¡°CACHE_DIR = ¡±ÊÇÖ¸¶¨ apt-p2p µÄÈí¼þ°ü»º´æĿ¼£¬½¨ÒéʹÓÃĬÈÏÖµ
¡°OTHER_DIRS = ¡±ÊÇÖ¸¶¨¶îÍâµÄÈí¼þ°üĿ¼¡£×¢Ò⣺һµ©Ö¸¶¨£¬ÔÚ¸ÃĿ¼ÏµÄËùÓÐÎļþ¶¼»á±»ÉÏ´«
¡°UPLOAD_LIMIT = ¡±Ö¸¶¨ÊÇ·ñ½øÐÐÈí¼þ°üÏÂÔØÊý¾ÝÁбíͳ¼Æ²¢¹«²¼¡£Ä¬ÈÏΪ¡°yes¡±¼´½øÐй«²¼£¬ÈôÄãµÄµçÄÔ¶Ô±£Ãܵȼ¶ÒªÇóÌرð¸ß£¬ÄÇÇëÉèÖÃΪ¡°no¡±
¡°DHT-ONLY = ¡±ÊÇ·ñ½öֻʹÓ÷ֲ¼Ê½É¢ÁбíÌṩµÄ×ÊÔ´£¬½¨ÒéʹÓÃĬÈÏÖµ¡°no¡±

5¡¢ÈôÊÇ×°ÓзÀ»ðǽ£¬Ð뽫¡°9967¡±¡¢¡°9977¡±¶Ë¿Ú¿ª·Å£»ÈôÊÇʹÓ÷ÓÉÆ÷£¬»¹ÐèÒª½øÐÐÓ³ÉäÉèÖÃ

6¡¢ÖØÐÂÆô¶¯ apt-p2p£¬ÒÔÓ¦ÓÃÐÂÅäÖÃ[code]sudo rm -rf /var/cache/apt-p2p/cache/*
sudo /etc/init.d/apt-p2p restart[/code]
7¡¢¿ªÊ¼¸üС¢Éý¼¶ÏµÍ³»ò°²×°Èí¼þ°ü
[code]sudo apt-get update
sudo apt-get upgrade[/code]˵Ã÷£ºÓеĽ̳Ì˵Ҫ½ûÓõÚÈý·½Ô´£¬µ«¾Í±ÉÈËʵ¼ÊʹÓÃÏÂÀ´µÄÇé¿ö£¬¾ÍËã²»½ûÓõÚÈý·½Ô´Ò²Ã»ÓÐʲôӰÏì

¼ìÊÓ apt-p2p ÔËÐÐÇé¿öµÄ·½·¨£º
ÔÚä¯ÀÀÆ÷µØÖ·À¸ÖÐÊäÈë http://localhost:9977/£¬¼´¿É²ì¿´Ïà¹ØÐÅÏ¢

ºó»ÚÒ©----жÔØ apt-p2p µÄ·½·¨£º[code]sudo apt-get remove --purge apt-p2p
sudo cp /etc/apt/sources.list.backup /etc/apt/sources.list
sudo rm -rf /var/cache/apt-p2p/*
sudo apt-get update[/code]
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 30 ÌõÆÀÂÛ

  1. bnmluo ÓÚ 2012-12-14 16:54:55·¢±í:

    À´Ñ§Ï°Ñ§Ï°

  2. yulead ÓÚ 2012-01-29 14:36:19·¢±í:

    ѧϰϹþ

  3. admin_hl ÓÚ 2011-12-31 13:38:03·¢±í:

    Ö§³ÖÏÂ

  4. admin_hl ÓÚ 2011-12-31 13:38:03·¢±í:

    Ö§³ÖÏÂ

  5. admin_hl ÓÚ 2011-12-31 13:38:02·¢±í:

    Ö§³ÖÏÂ

  6. shawnpan ÓÚ 2011-09-04 18:41:06·¢±í:

    ¼ÌÐø¡£¡£¡£¼ÌÐø¡£¡£¡£¡£Ñ§Ï°Ñ§Ï°

  7. linuxunix ÓÚ 2011-08-11 18:07:10·¢±í:

    Ò»°ãÓò»µ½

  8. ganzu ÓÚ 2011-08-07 17:16:33·¢±í:

    haoºÃºÅÔæ

  9. gwenci_i86 ÓÚ 2011-07-04 09:37:37·¢±í:

    Éî°Â°¡£¬Ñ§Ï°ÖÐ

  10. swh520 ÓÚ 2011-06-13 12:32:37·¢±í:

    6# iwohaoaini


    ÕæµÄŶ

  11. lihang2599 ÓÚ 2011-06-08 22:01:10·¢±í:

    ¶¥¶¥¶¥¶¥¶¥¶¥¶¥¶¥¶¥¶¥¶¥¶¥¶¥¶¥¶¥¶¥ddddddd

  12. л¿¡½Ü ÓÚ 2011-06-03 08:12:06·¢±í:

    Âé·³

  13. dqwit ÓÚ 2011-05-31 21:30:43·¢±í:

    Å£B°¡£¬Ð»Ð»Â¥Ö÷

  14. CrazyPigPC ÓÚ 2011-05-12 15:34:45·¢±í:

    ѧϰÁË£¬Thanks for shanring!(()):s

  15. pl_014 ÓÚ 2011-04-21 22:39:27·¢±í:

    ÒýÓÃ:
    ÕâÊÇÒ»¸öÑ­»·£ºÓõÄÈËÉÙ£­>ËÙ¶ÈÂý£­>ûÈËÔ¸ÒâÓã­>ËٶȸüÂý£­>¡­¡­
    gleerat ·¢±íÓÚ 2011-4-20 19:03

    ÒýÓÃ:
    14# gleerat
    ËùÒÔ£¬ÒªÐ´³É½Ì³Ì¡¢¼ÓÒÔºÅÕÙ£¬ÒÔÇóת±äÕâ¸öÑ­»·µÄÇ÷ÊÆ
    ´ó±¦ ·¢±íÓÚ 2011-4-20 20:38

    ͨ¹ýp2pÏÂÔصĴó¶àÊǶþÊÖ¡¢ÈýÊÖÉõÖÁÊǸü¶àÊÖµÄ×ÊÁÏ£¬¾ÍÓ¦¸ÃÖØÊÓ׼ȷÐÔÁË£¬ËùÒÔ×îºÃ¿ÉÒÔ¶ÔÏÂÔغóµÄÿ¸öÎļþ½øÐÐУÑ飬²»Öªapt-getÊÇ·ñÓд˹¦ÄÜ¡£

  16. ´ó±¦ ÓÚ 2011-04-20 20:38:44·¢±í:

    14# gleerat
    ËùÒÔ£¬ÒªÐ´³É½Ì³Ì¡¢¼ÓÒÔºÅÕÙ£¬ÒÔÇóת±äÕâ¸öÑ­»·µÄÇ÷ÊÆ

  17. chaodan1947 ÓÚ 2011-04-20 19:42:24·¢±í:

    ´ó±¦£¿ÕⶼÊÇЩÉñÂí¹Ù°¡£¿

  18. gleerat ÓÚ 2011-04-20 19:03:53·¢±í:

    ÕâÊÇÒ»¸öÑ­»·£ºÓõÄÈËÉÙ£­>ËÙ¶ÈÂý£­>ûÈËÔ¸ÒâÓã­>ËٶȸüÂý£­>¡­¡­

  19. xinghaiss ÓÚ 2011-04-20 18:22:58·¢±í:

    Ó¦¸ÃÖ§³Ö£¬ÎÒÊÇÐÂÊÖÔÚѧϰ¡£¡£¡£

  20. jg0005 ÓÚ 2011-04-20 16:03:54·¢±í:

    лл´ó±¦

  21. ´ó±¦ ÓÚ 2011-04-19 20:56:09·¢±í:

    ÒýÓÃ:
    ´ó±¦£¬ºÃ¾Ã²»¼ûÄãÁË£¬³öÁïÄÄÀïÈ¥ÁË£¿
    Áõ³å ·¢±íÓÚ 2011-4-19 20:52

    ???·´?µÄ¼Òâ·£¬ÊǺþò»?Ä㣡
    ßÀ£¬?È»£¬IRC µ½ÊÇÓжÎ???ÉÏÁË¡£¡£¡£¡£
    Ö÷ÒªÊǹ¤×÷±È?棬?ÔÚÿÌì´ýÔÚ?¹«ÊÒµÄ??²»µ½ 2/8

  22. Áõ³å ÓÚ 2011-04-19 20:52:32·¢±í:

    ´ó±¦£¬ºÃ¾Ã²»¼ûÄãÁË£¬³öÁïÄÄÀïÈ¥ÁË£¿

  23. pl_014 ÓÚ 2011-04-19 20:46:37·¢±í:

    [i=s] ±¾Ìû×îºóÓÉ pl_014 ÓÚ 2011-4-19 20:48 ±à¼­ [/i]

    ´ÓÀ´¶¼²»Ï²»¶p2p£¬¶øÇÒÒ²²»ÖªµÀapt-getÊÇ·ñУÑéÏÂÔغóµÄÎļþ¡£
    ÁíÍâ²¹³äÒ»µã£¬ÔÚdebianÏ£¬ÏÈsuÖÁrootÓû§£¬È»ºó¾Í²»ÐèҪÿÌõÃüÁ¼ÓsudoÁË£¬ÔÙ˵debianÏÂÒªÏëÓÃsudo£¬»¹ÐèÒª¸Ä/etc/sudoers

  24. siegen2007 ÓÚ 2011-04-19 17:24:49·¢±í:

    ѧϰѧϰ

  25. qq470320278 ÓÚ 2011-04-19 12:43:07·¢±í:

    ѧϰÏ¡­Ö§³ÖÏÂ

  26. iwohaoaini ÓÚ 2011-04-18 19:52:12·¢±í:

    Ì«Âé·³ÁË°¡

  27. GrowthÕ× ÓÚ 2011-04-18 13:53:21·¢±í:

    ¸Ðл´ó±¦µÄ·ÖÏí£¬±¾Ìù¼ÓÈëµ½ÂÛ̳¶¥ÖõÄLinuxÓ¦ÓÃË÷ÒýÌùÖÐ

  28. q7262395 ÓÚ 2011-04-18 11:17:14·¢±í:

    ȷʵ²»´í¡££¬²»¹ýÄ¿Ç°ÓõÄʵÔÚºÜÉÙ£¬ËÙ¶ÈÓ¦¸Ã²»¿ì£¬Ò»ÆðÀ´£¬»ØÈ¥¾ÍŪ£¡

  29. auto ÓÚ 2011-04-18 06:52:31·¢±í:

    ºÜÇ¿´ó¹þ£¬¶àл

  30. cherry722 ÓÚ 2011-04-18 03:13:47·¢±í:

    come on!