【正文】
/usr/local/lib/ /usr/lib64/下面繼續(xù)使用/usr/local/bin/memcached –h 做測試,成功顯示:memcached p num TCP port number to listen on (default: 11211)U num UDP port number to listen on (default: 0, off)s file unix socket path to listen on (disables network support)a mask access mask for unix socket, in octal (default 0700)l ip_addr interface to listen on, default is INDRR_ANYd run as a daemonr maximize core file limitu username assume identity of username (only when run as root)m num max memory to use for items in megabytes, default is 64 MBM return error on memory exhausted (rather than removing items)c num max simultaneous connections, default is 1024k lock down all paged memory. Note that there is a limit on how much memory you may lock. Trying to allocate more than that would fail, so be sure you set the limit correctly for the user you started the daemon with (not for u username user。 under sh this is done with 39。ulimit S l NUM_KB39。).v verbose (print errors/warnings while in event loop)vv very verbose (also print client mands/reponses)h print this help and exiti print memcached and libevent licenseb run a managed instanced (mnemonic: buckets)P file save PID in file, only used with d optionf factor chunk size growth factor, default n bytes minimum space allocated for key+value+flags, default 48到此,memcached安裝成功。(上面出現(xiàn)的問題是機器64位的原因,因為將so文件放到了lib64下面,而不是lib下面,使得memcached找不到so文件)。啟動一個Memcached的服務(wù)器端: /usr/local/bin/memcached d f m 2000 u root l p 11211 c 2048 P /tmp/結(jié)束memcached進程: kill ‘cat /tmp/’7 / 7