linuxÏÂmemcached°²×°ÒÔ¼°Æô¶¯
1.ÏÂÔØmemcached·þÎñÆ÷¶Ë°²×°Îļþ
°æ±¾£º
memcached-1.4.2.tar.gz
ÏÂÔصØÖ·£ºhttp://www.danga.com/memcached/download.bml
2.ÏÂÔØlibevent£¬memcachedÐèÒªÓõ½socked£¬ÒÀÀµ´Ë°²×°Îļþ¡£
°æ±¾£º
libevent-1.4.12-stable.tar.gz
ÏÂÔصØÖ·£ºhttp://www.monkey.org/~provos/libevent/
3.ÓÉÓÚlinuxϵͳ¿ÉÄÜĬÈÏÒѾ°²×°libevent£¬
Ö´ÐÐÃüÁrpm -qa|grep libevent²é¿´ÏµÍ³ÊÇ·ñ´øÓиð²×°Èí¼þ
Èç¹ûÓÐÖ´ÐÐÃüÁrpm -e libevent-1.1a-3.2.1 --nodeps£¨ÓÉÓÚϵͳ×Ô´øµÄ°æ±¾¾É£¬ºöÂÔÒÀÀµÉ¾³ý£©
4.°²×°libevent£¬
tar zxvf libevent-1.4.12-stable.tar.gz
cd libevent-1.4.12-stable
./configure --prefix=/usr/local/libevent-1.4
make
make install
5.°²×°memcached
tar zxvf memcached-1.4.2.tar.gz
cd memcached-1.4.2
./configure --prefix=/usr/local/memcached-1.4.2 --with-libevent=/usr/local/libevent-1.4/
make
make install
ÖÁ´Ëmemcached°²×°Íê±Ï
6.²âÊÔ
µ±Æô¶¯memcachedʱ¾³£²»ÄÜ·¢ÏÖlibevent.so£»¿ÉÒÔͨ¹ýÒÔÏÂÃüÁî¼ì²é£º
½øÈë/usr/local/memcached-1.4.2/binĿ¼
LD_DEBUG=help ./memcached -v
LD_DEBUG=libs
./
memcached -v
½â¾ö·½·¨£º
ln -s /usr/local/libevent-1.4/lib/libevent-1.4.so.2 /lib64/libevent-1.4.so.2
7.Æô¶¯memcache£º
./memcached -help
./memcached -d -m 1024 -u root -p 11211 -c 1024 -p /tmp/memcached.pid
Æô¶¯²ÎÊý˵Ã÷£º
-d Ñ¡ÏîÊÇÆô¶¯Ò»¸öÊØ»¤½ø³Ì£¬
-m ÊÇ·ÖÅä¸øMemcacheʹÓõÄÄÚ´æÊýÁ¿£¬µ¥Î»ÊÇMB£¬Ä¬ÈÏ64MB
-M return error on memory exhausted (rather than removing items)
-u ÊÇÔËÐÐMemcacheµÄÓû§£¬Èç¹ûµ±Ç°Îªroot µÄ»°£¬ÐèҪʹÓô˲ÎÊýÖ¸¶¨Óû§¡£
-l ÊǼàÌýµÄ·þÎñÆ÷IPµØÖ·£¬Ä¬ÈÏΪËùÓÐÍø¿¨¡£
-p ÊÇÉèÖÃMemcacheµÄTCP¼àÌýµÄ¶Ë¿Ú£¬×îºÃÊÇ1024ÒÔÉϵĶ˿Ú
-c Ñ¡ÏîÊÇ×î´óÔËÐеIJ¢·¢Á¬½ÓÊý£¬Ä¬ÈÏÊÇ1024
Ïà¹ØÎĵµ£º
¡¾1. linux applications ÓÐÁ½ÖÖÐÎʽ¡¿
i£©¿ÉÖ´ÐеÄÎļþ£º ¿ÉÓɼÆËã»úÖ±½ÓÔËÐУ¬Ï൱ÓÚwindowsµÄ.exeÎļþ
ii£©Script: collections of instructions for another program. Ï൱ÓÚwindowsµÄ.bat .cmdÎļþ
¡¾2. PATH¡¿
ÔÚLinuxÖУ¬µ±ÊäÈë³ÌÐòÃû£¨ÈçFirefox£©Ê±£¬ÏµÍ³»áÔÚÃûΪPATHµÄShell±äÁ¿Ëù¸ø ......
ÍøÉÏÓÐƪÌû×Ó°üº¬ÀïlinuxϵÄdnw£¬ÎÒÔÚÓÃidea6410£¬±àÒëdnwºÍsecbulkºó²¢²»ÄÜÕý³£Ê¹ÓÃ
LINUXϵÄDNW³ÌÐòÏÂÔØ
http://linux.chinaunix.net/bbs/viewthread.php?tid=1055992
secbulkÉ豸佨Á¢£¬ÊÖ¶¯½¨Á¢/dev/secbulk0²¢²»Æð×÷Óã¬ÔÒòÊÇsecbulk probe»áÆ¥Åäid_table£¬Õâ¸öÊÇΪQQ2440×¼±¸µÄ£¬ËùÒÔÐèÒª¸Äid_table
static s ......
¹¦ÄÜÃèÊö£º
»ñȡһЩÎļþÏà¹ØµÄÐÅÏ¢¡£
Ó÷¨£º
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
int stat(const char *path, struct stat *buf);
int fstat(int filedes, struct stat *buf);
int lstat(const char *path, struct stat *buf);
²ÎÊý£º
path£ºÎļþ ......
Get Redhat Enterprise 3.0 from:
Your local RedHat rep�
Get Veritas’ VCS and VM products from:
ftp://ftp.veritas.com/pub/products/fst_ha.lxrt2.2.redhatlinux.tar.gz
ftp://ftp.veritas.com/pub/products/fst_ha.lxrt2.2MP1.redhatlinux.tar.gz
You will need a temporary key to complete this ......
Oops¿ÉÒÔ¿´³ÉÊÇÄں˼¶µÄSegmentation Fault¡£Ó¦ÓóÌÐòÈç¹û½øÐÐÁË·Ç·¨ÄÚ´æ·ÃÎÊ»òÖ´ÐÐÁË·Ç·¨Ö¸Á»áµÃµ½SegfaultÐźţ¬Ò»°ãµÄÐÐΪÊÇcoredump£¬Ó¦ÓóÌÐòÒ²¿ÉÒÔ×Ô¼º½Ø»ñSegfaultÐźţ¬×ÔÐд¦Àí¡£Èç¹ûÄÚºË×Ô¼º·¸ÁËÕâÑùµÄ´íÎó£¬Ôò»á´ò³öOopsÐÅÏ¢¡£´¦ÀíÆ÷ʹÓõÄËùÓеØÖ·¼¸ºõ¶¼ÊÇͨ¹ýÒ»¸ö¸´ÔÓµÄÒ³± ......