Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinuxÏÂMemcache·þÎñÆ÷¶ËµÄ°²×°

×î½üÔÚÑо¿ÔõôÈÃDiscuz!È¥Ó¦ÓÃMemcacheÈ¥×öһЩÊÂÇ飬¼Ç¼ÏÂMemcache°²×°µÄ¹ý³Ì¡£
LinuxÏÂMemcache·þÎñÆ÷¶ËµÄ°²×°
·þÎñÆ÷¶ËÖ÷ÒªÊÇ°²×°memcache·þÎñÆ÷¶Ë£¬Ä¿Ç°µÄ×îа汾ÊÇ memcached-1.3.0 ¡£
ÏÂÔØ£ºhttp://www.danga.com/memcached/dist/memcached-1.2.2.tar.gz
ÁíÍ⣬MemcacheÓõ½ÁËlibeventÕâ¸ö¿âÓÃÓÚSocketµÄ´¦Àí£¬ËùÒÔ»¹ÐèÒª°²×°libevent£¬libeventµÄ×îа汾ÊÇ
libevent-1.3¡££¨Èç¹ûÄãµÄϵͳÒѾ­°²×°ÁËlibevent£¬¿ÉÒÔ²»Óð²×°£©
¹ÙÍø£ºhttp://www.monkey.org/~provos/libevent/
ÏÂÔØ£ºhttp://www.monkey.org/~provos/libevent-1.3.tar.gz
ÓÃwgetÖ¸ÁîÖ±½ÓÏÂÔØÕâÁ½¸ö¶«Î÷.ÏÂÔØ»ØÔ´Îļþºó¡£
1.ÏÈ°²×°libevent¡£Õâ¸ö¶«Î÷ÔÚÅäÖÃʱÐèÒªÖ¸¶¨Ò»¸ö°²×°Â·¾¶£¬¼´./configure –prefix=/usr£»È»ºómake£»È»ºómake
install£»
2.ÔÙ°²×°memcached£¬Ö»ÊÇÐèÒªÔÚÅäÖÃʱÐèÒªÖ¸¶¨libeventµÄ°²×°Â·¾¶¼´./configure
–with-libevent=/usr£»È»ºómake£»È»ºómake install£»
ÕâÑù¾ÍÍê³ÉÁËLinuxÏÂMemcache·þÎñÆ÷¶ËµÄ°²×°¡£ÏêϸµÄ·½·¨ÈçÏ£º
1.·Ö±ð°ÑmemcachedºÍlibeventÏÂÔØ»ØÀ´£¬·Åµ½ /tmp Ŀ¼Ï£º
# cd /tmp
# wget http://www.danga.com/memcached/dist/memcached-1.2.0.tar.gz
# wget http://www.monkey.org/~provos/libevent-1.2.tar.gz
2.ÏÈ°²×°libevent£º
# tar zxvf libevent-1.2.tar.gz
# cd libevent-1.2
# ./configure –prefix=/usr
# make
# make install
3.²âÊÔlibeventÊÇ·ñ°²×°³É¹¦£º
# ls -al /usr/lib | grep libevent
lrwxrwxrwx 1 root root 21 11?? 12 17:38
libevent-1.2.so.1 -> libevent-1.2.so.1.0.3
-rwxr-xr-x 1 root root 263546 11?? 12 17:38
libevent-1.2.so.1.0.3
-rw-r–r– 1 root root 454156 11?? 12 17:38 libevent.a
-rwxr-xr-x 1 root root 811 11?? 12 17:38 libevent.la
lrwxrwxrwx 1 root root 21 11?? 12 17:38 libevent.so
-> libevent-1.2.so.1.0.3
»¹²»´í£¬¶¼°²×°ÉÏÁË¡£
4.°²×°memcached£¬Í¬Ê±ÐèÒª°²×°ÖÐÖ¸¶¨libeventµÄ°²×°Î»Öãº
# cd /tmp
# tar zxvf memcached-1.2.0.tar.gz
# cd memcached-1.2.0
# ./configure –with-libevent=/usr
# make
# make install
Èç¹ûÖмä³öÏÖ±¨´í£¬Çë×Ðϸ¼ì²é´íÎóÐÅÏ¢£¬°´ÕÕ´íÎóÐÅÏ¢À´ÅäÖûòÕßÔö¼ÓÏàÓ¦µÄ¿


Ïà¹ØÎĵµ£º

linux Ͻâ¾ö google music ÂÒÂë

ÊäÈëÃüÁ
sudo gedit /etc/fonts/conf.d/49-sansserif.conf
Ô­ÎĵÄÄÚÈÝÊÇ£º
Html´úÂë < type="application/x-shockwave-flash" width="14" height="15" src="http://kmplayer.javaeye.com/javascripts/syntaxhighlighter/clipboard_new.swf" src="http://kmplayer.javaeye.com/javascripts/syntaxhighlighter/clipboar ......

linux socket¿ª·¢»ù´¡


 
 
¡¡¡¡ÕâÊǹØÓÚÈçºÎÓø÷ÖÖ¿ÉÒԵõ½µÄ½Ó¿ÚΪLinux¿ª·¢ÍøÂç³ÌÐòµÄϵÁÐÎÄÕµĵÚһƪ¡£¾ÍÏñ´ó¶àÊýUnix-basedµÄ²Ù×÷ϵͳһÑù£¬LinuxÖ§³Ö½«TCP/IP×÷Ϊ±¾µØµÄÍøÂç´«ÊäЭÒé¡£ÔÚÕâ¸öϵÁÐÖУ¬ÎÒÃǼٶ¨ÄãÒѾ­±È½ÏÊìϤLinuxÉϵÄC±à³ÌºÍLinuxµÄһЩϵͳ֪ʶÖîÈçsignals,forkingµÈµÈ¡£
¡¡¡¡ÕâƪÎÄÕÂÊǹØÓÚÈçºÎÓÃBSDÌ×½Ó¿ ......

»ùÓÚǶÈëʽLinuxµÄÊÓƵͼÏñ²É¼¯Óë´«Êä

 
ÕªÒª:ÊÓƵͼÏñ²É¼¯¼°´¦Àí¼¼ÊõÔÚÔ¶³ÌÊÓƵ¼à¿ØºÍ¿ÉÊӵ绰ÖÐÓÐ׏㷺µÄÓ¦ÓÃÇ°¾°£¬Çý¶¯ÊÓƵ²É¼¯É豸ºÍ»ñÈ¡ÊÓƵÊý¾Ý²¢½øÐÐÏàÓ¦µÄ´¦Àí£¬ÊÇʵÏÖÕâЩӦÓõĻù´¡¡£Õë¶ÔÕâЩӦÓ㬹¹½¨ÁËÒ»¸ö»ùÓÚǶÈëʽ LinuxºÍ PXA270΢´¦ÀíÆ÷µÄÊÓƵ²É¼¯Óë´«Êäϵͳ£¬ÀûÓà Video4LinuxʵÏÖ USBÉãÏñÍ·ÊÓƵÊý¾Ý²É¼¯£¬²É¼¯µÄÊÓƵÊý¾Ý¾­ JPEGѹËõº ......

LinuxÏÂselectµÄʹÓÃС¼Ç

½ñÌìʹÓÃselect±à³Ì£¬ÎÊÌâºÜ¶à£¬ÒÔÇ°ÕæµÄûÓÐ×ÐϸÑо¿¹ý¡£
³öÏÖÁËÒÔϼ¸¸öÎÊÌâ
1 recvfromÔÚ½ÓÊÕʱ£¬Ìṩ¸øϵͳµ÷ÓõÄ×îºóÒ»¸ö²ÎÊý£¬¿Í»§¶ËµÄµØÖ·½á¹¹£¬Æ䳤¶È±ØÐë½øÐгõʼ»¯£¬Èç¹ûΪ0£¬Ôò²»ÄܽÓÊÕÊý¾Ý¡£
2 selectµÄµÚÒ»¸ö²ÎÊýΪËùÓмàÊÓµÄÎļþÃèÊö·ûµÄ×î´óÖµ+1£¬¶ø²»ÊǼàÊÓµÄÎļþÃèÊö·û¸öÊý+1¡£
3 ²»Òª¼àÊÓÄÇЩ¾­³£¿ÉÓ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ