:Memcached? MemcachedDanga Interactive,,,,。 、 libevent wget http://monkey.org/~provos/libevent-1.4.14b-stable.tar.gz memcached wget http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz 、 Libevent [root@jw-test01 software]# tar zxvf libevent-1.4.14b-stable.tar.gz [root@jw-test01 software]# cd libevent-1.4.14b-stable [root@jw-test01 libevent]# ./configure --prefix=/usr/local/libevent/ [root@jw-test01 libevent]# make [root@jw-test01 libevent]# make install Memcached [root@jw-test01 software]# tar -zxvf memcached-1.4.5.tar.gz [root@jw-test01 software]# cd memcached-1.4.5 [root@jw-test01 memcached]# ./configure --prefix=/usr/local/memcached --with-libevent=/usr/local/libevent/ [root@jw-test01 memcached]# make [root@jw-test01 memcached]# make install 、Memcached #!/bin/bash # author:kuangl # date:2013-05-30 # description: Starts and stops the Memcached services. # pidfile: /tmp/memcached1.pid # config: /usr/local/memcached # chkconfig: - 55 45 # source function library . /etc/rc.d/init.d/functions memcached="/usr/local/memcached/bin/memcached" [ -e $memcached ] || exit 1 start() { echo "Starting memcached:" daemon $memcached -d -m 1000 -u root -l 127.0.0.1 -p 11211 -c 1500 -P /tmp/memcached1.pid } stop() { echo "Shutting down memcached" killproc memcached } case "$1" in start) start ;; stop) stop ;; restart) stop sleep 3 start ;; *) echo $"Usage: $0 {start|stop|restart}" exit 1 esac exit $? 、init.d [root@jw-test01 scripts]# cp memcached.sh /etc/init.d/memcached 、memcached [root@jw-test01 scripts]# chkconfig --add memcached [root@jw-test01 scripts]# chkconfig --level 35 memcached on 、memcached [root@jw-test01 scripts]# service memcached restart Shutting down memcached [] Starting memcached: [] [root@jw-test01 scripts]# ps -ef |grep memcached root 27616 1 0 22:18 ? 00:00:00 /usr/local/memcached/bin/memcached -d -m 1000 -u root -l 127.0.0.1 -p 11211 -c 1500 -P /tmp/memcached1.pid 、Memcached | | | | -p | (: 11211)| | -U | UDP(: 11211, 0 )| | -l <ip_addr> | (:,IP,,127.0.0.1)| | -d | | | -u | | | -m | ,M (: 64 MB)| | -P | PID,, -d | : UbuntuMemcached http://www.linuxidc.com/Linux/2013-06/85832.htm LinuxMemcached+Nginx+PHP http://www.linuxidc.com/Linux/2013-05/84917.htm Nginx+Tomcat+MemcachedWeb http://www.linuxidc.com/Linux/2012-09/71264.htm