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

ÔÚLinux°²×°Memcache»º´æ·þÎñÆ÷¶ËµÄ·½·¨


Memcache»º´æÊǸöºÃÈí¼þ£¬ÕâÀï½²ÏÂÔÚLinuxÏ°²×°µÄ·½·¨£º
·þÎñÆ÷¶ËÖ÷ÒªÊÇ°²×°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
Èç¹ûÖмä³öÏÖ±¨´í£¬Çë×Ðϸ¼ì²é´íÎóÐÅÏ¢£¬°´ÕÕ´íÎóÐÅÏ¢À´ÅäÖûòÕßÔö¼ÓÏàÓ¦µÄ¿â»òÕß·¾¶¡£
°²×°Íê³Éºó»á°Ñmemcached·Åµ½ /usr/local/bin/memcached £¬
5.²âÊÔÊÇ·ñ³É¹¦°²×°memcached£º
# ls -al /usr/local/bin/mem*
-rwxr-xr-x 1 root root 1


Ïà¹ØÎĵµ£º

linux 0.11 ÄÚºËѧϰ file_dev.c


/*
 *  linux/fs/file_dev.c
 *
 *  (C) 1991  Linus Torvalds
 */
#include <errno.h>
#include <fcntl.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <asm/segment.h>
#define MIN(a,b) (((a)<(b))?(a):(b))
#defi ......

SubVersion¶¨ÆÚÍêÕû±¸·Ý½Å±¾(Linux)

½Å±¾¹¦ÄÜ: ¶¨ÆÚ¶ÔһЩÏîÄ¿½øÐÐÍêÕû±¸·Ý.
project.lst Îļþ¸ñʽÈçÏÂ:
project1
project2
±¸·Ý½Å±¾ÈçÏÂ:
#!/bin/sh
#
# subversion data backup script
# by scud http://www.jscud.com
# 2005-11-27
#
# subversionÍêÕû±¸·ÝµÄ½Å±¾,µ÷ÕûºÃºóʹÓÃcrontab -e ·Åµ½×Ô¶¯Ö´ÐÐÀïÃæ¼´¿É.
#
#±¸·ÝÈÕÖ¾Îļþ
LogFile=/bac ......

Linux KernelÇýÖðAndroid£ºµ½µ×·¢ÉúÁËʲô

¹Ø×¢Android£¬¹Ø×¢Google   Ç°ÈÕLinux Kernelά»¤ÕßGreg Kroah-Hartman°ÑAndroid´úÂë´ÓLinux Kernel´úÂë¿âÖÐɾ³ýµÄÏûÏ¢ÒýÀ´Á˹㷺¹Ø×¢£¬¿ª·¢½çÒÑÓкܶàÆÀÂÛ¶Ô´ËʽøÐÐÌÖÂÛ¡£ifanr½ñÈÕÌṩÁ˵±ÌìGregÉùÃ÷µÄÈ«ÒëÎÄ£¬ÏÂÃæ¾ÍÈÃÎÒÃÇÀ´¿´¿´¡£ 2.6.33 °æÄÚºËÒƳýÁËAndroidµÄ´úÂë¡£ºÜ¶àÈ˲»¶ÏµØÎÊÎÒ·¢ÉúÁËʲô£¬¶ÔÓÚAnd ......

Linux Versions and Patches


Linux version
[1] 2.6.10
2.6 version number, 10 release number
[2] 2.6.10 and 2.6.11
They can differ significantly even in core components and in fundamental algorithms
[3] 2.6.11.12
when a new kernel release appears, it is potentially unstable and buggy. To address this problem, the kern ......

Linuxϵͳ¹¹½¨ºÍÔËÓÃsamba½øÐкÍwindowsµÄ¹²Ïí

²ÉÓúìñµÄÆóÒµ°æ5£¬°²×°µÄʱºòÒª°Ñ±ØÒªµÄ¿ª·¢×齨ѡÔñÉÏ£¡Èçtftp£¬samba£¬ºÍnfsµÈ¡£¡£¡£¡£
°²×°VMware¶øºóÉèÖð²×°ºìñÆóÒµ°æ5£¬×îºó°²×°VMware tools£¬ÔËÓÃVMware tools¾Í¿ÉÒÔÔÚLinuxºÍwindowsÖ®¼ä¸´ÖÆÕ³ÌùÎļþ£¬ÕâÑù¿ÉÒÔÈ¡´úsamba·þÎñÆ÷µÄ¹¦ÄÜ¡£
samba·þÎñÆ÷ʹÓÃʱºò£¬ÒªÏȶ¨ÒåwmÁ¬½Ó0°ÑËü¶¨Òå³ÉÒ»¸öÖ¸¶¨µÄÍøÂçÁ¬½Ó£¬È ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ