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

Linux °²×° memcached ±¸Íü

1.±àÒë°²×°libevent
2.±àÒë°²×°Memcached
ÔÚÎÒдÕâƪÎÄÕµÄʱºò£¬libeventÒѾ­ÓÐ1.4.8Îȶ¨°æ
£¬Memcached ServerÒѾ­ÓÐ1.3.0°æ±¾
¡£±¾ÎľÍÒÔÕâÁ½¸ö°æ±¾ÎªÀý£¬ÎÒµÄgccÊÇgcc version 3.3.4 (Debian 1:3.3.4-7)¡£
Ê×ÏÈ°²×°libevent
wget http://www.monkey.org/~provos/libevent-1.4.8-stable.tar.gz
tar zxvf libevent-1.4.8-stable.tar.gz

cd libevent-1.4.8-stable
./configure –prefix=/usr Ö¸¶¨°²×°ÔÚ/usrÏ¡£Ò»¿ªÊ¼ÎÒûÓÐÖ¸¶¨°²×°Ä¿Â¼µ¼ÖÂlibevent°²×°ÔÚ/usr/local/lib£¬µ¼ÖÂMemcached°²×°ºóÕÒ²»µ½libevent¿â£¬¼´Ê¹ÊÖ¹¤Ö¸¶¨Â·¾¶Ò²²»ÐÐ
make && make install
make clean
È»ºó°²×°Memcached Server
wget http://www.danga.com/memcached/dist/memcached-1.3.0.tar.gz
tar zxvf memcached-1.3.0.tar.gz
cd memcached-1.3.0/
./configure --with-libevent=/usr ÕâÀïÐèÒªÖ¸¶¨libeventµÄ·¾¶
make && make install
make clean
Ò»Õ£ÑÛ¹¦·ò¾Í¶¼±àÒë°²×°Íê³ÉÁË¡£
²âÊÔÏÂMemcached°²×°³É¹¦Ã»£º
/usr/local/bin/memcached -d -m 10 -u root -l 192.168.0.200 -p 12000 -c 256 -P /tmp/memcached.pid
û´íÎóÌáʾµÄ»°£¬Ö¤Ã÷°²×°³É¹¦²¢ÇÒÆô¶¯ÁËMemcached·þÎñÁË¡£
Memcached»ù±¾ËµÃ÷£º
Æô¶¯²ÎÊý£º
-dÑ¡ÏîÊÇÆô¶¯Ò»¸öÊØ»¤½ø³Ì£¬
-mÊÇ·ÖÅä¸øMemcacheʹÓõÄÄÚ´æÊýÁ¿£¬µ¥Î»ÊÇMB
-uÊÇÔËÐÐMemcacheµÄÓû§
-lÊǼàÌýµÄ·þÎñÆ÷IPµØÖ·
-pÊÇÉèÖÃMemcache¼àÌýµÄ¶Ë¿Ú
-cÑ¡ÏîÊÇ×î´óÔËÐеIJ¢·¢Á¬½ÓÊý£¬Ä¬ÈÏÊÇ1024
-PÊÇÉèÖñ£´æMemcacheµÄpidÎļþ
½áÊøMemcached½ø³ÌʹÓÃÈçÏÂÓï¾ä£º
kill `cat /tmp/memcached.pid`


Ïà¹ØÎĵµ£º

װLinuxϵͳ

½ñÌì×°ÁËÒ»ÌìµÄLinuxϵͳ£¬ÓëÆä˵°²×°»¹²»Èç˵ÊÇÏÂÔØÁËÒ»Ì죬ÏȺó×°ÁËfedora core 4£¬fedora core 6£¬×îºó×°fedora core 8ÖÕÓÚ¿ÉÒÔÓÃÁË£¬Ã¿¸ö¶¼ÊÇ3G¶à£¬ÒòΪÔÚѧУµÄ¹¤×÷ÊÒ£¬ËùÒÔÏÂÔØËÙ¶Èƽ¾ù¿ÉÒÔ´ïµ½1.9M²»µ½£¬Õâ¿ÉÊÇÏÞËٵģ¬¾ÍËãÕâÑùÎҵĵçÄÔÒ²ÒòΪÏÂÔØËÙ¶ÈÌ«¿ìËÀÁËN»ØÁË£¬¶¼ÊÇÇ¿ÖÆPowerµÄ£¬ÕæµÃ×°µÃÓеãÓôÃÆ°¡£¬×°FC4ÊÇÒ ......

LINUX Ï°²×°TFTP·þÎñ

TFTPÊÇÓÃÀ´ÏÂÔØÔ¶³ÌÎļþµÄ×î¼òµ¥ÍøÂçЭÒ飬Ëü»ùÓÚUDPЭÒé¶øʵÏÖ¡£Ç¶ÈëʽlinuxµÄtftp¿ª·¢»·¾³°üÀ¨Á½¸ö·½Ã棺һÊÇǶÈëʽlinuxËÞÖ÷»úµÄ tftp-serverÖ§³Ö£¬¶þÊÇǶÈëʽlinuxÄ¿±ê»úµÄtftp-clientÖ§³Ö¡£ÒòΪu-boot±¾ÉíÄÚÖÃÖ§³Ötftp-client£¬ËùÒÔǶÈëʽĿ±ê»ú¾Í²»ÓÃÅäÖÃÁË¡£ÏÂÃæ¾ÍÏêϸ½éÉÜÒ»ÏÂlinuxËÞÖ÷»útftp-serverµÄ°²×°ÅäÖá£
......

linux grepÃüÁǿ´óµÄÎı¾ËÑË÷

Ô­ÎÄ http://www.9usb.net/200902/linux-grep.html
1.×÷ÓÃ
linuxϵͳÖÐgrepÃüÁîÊÇÒ»ÖÖÇ¿´óµÄÎı¾ËÑË÷¹¤¾ß£¬ËüÄÜʹÓÃÕýÔò±í´ïʽËÑË÷Îı¾£¬²¢°ÑÆ¥ÅäµÄÐдòÓ¡³öÀ´¡£grepÈ«³ÆÊÇGlobal Regular Expression Print£¬±íʾȫ¾ÖÕýÔò±í´ïʽ°æ±¾£¬ËüµÄʹÓÃȨÏÞÊÇËùÓÐÓû§¡£
2.¸ñʽ
grep [options]
3.Ö÷Òª²ÎÊý
[options]Ö÷Òª²ÎÊý£º ......

linuxÖÐ×Ö·û´®µÄ´¦Àí

st='abcd'
1.×Ö·û´®³¤¶È
expr length $st »òÕß ${#st}
2.È¡×Ö·û´®µÄsubstring
expr substr "$var" startpos length »òÕß ${var:m} ${var:m:len}
${var:m}ÖеÄmµÄÈ¡Öµ´Ó0µ½${#var}-1£¬Æä·µ»ØµÄÊÇ´ÓµÚm¸ö×Ö·ûµ½×îºóµÄ²¿·Ö£»ÀýÈçecho ${st:1}µÄ½á¹ûÊÇ'bcd'
expr substr "$var" startpos length ÖеÄstartposÈ¡Öµ·¶Î§ÊÇ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ