1. 程式人生 > >Linux安裝memcached

Linux安裝memcached

bsp linu tcp conf make .tar.gz listen 1.4 mem

[[email protected] ~]# tar zxvf libevent-2.1.8-stable.tar.gz
[[email protected] ~]# cd libevent-2.1.8-stable
[[email protected] libevent-2.1.8-stable]# mkdir /home/libevent
[[email protected] libevent-2.1.8-stable]# ./configure --prefix=/home/libevent/
[[email protected]

libevent-2.1.8-stable]# make
[[email protected] libevent-2.1.8-stable]# make install

[[email protected] ~]# tar zxvf memcached-1.4.36.tar.gz
[[email protected] ~]# cd memcached-1.4.36
[[email protected] memcached-1.4.36]# mkdir /home/memcache
[[email protected] memcached-1.4.36]# ./configure --prefix=/home/memcache/ --with-libevent=/home/libevent
[[email protected]

/* */ memcached-1.4.36]# make
[[email protected] memcached-1.4.36]# make install
[[email protected] bin]# ./memcached -d -m 1024 -u root
[[email protected] bin]# ps -ef|grep memcached
root 12255 1 0 13:58 ? 00:00:00 ./memcached -d -m 1024 -u root
root 12263 2345 0 13:58 pts/1 00:00:00 grep memcached

[[email protected] bin]# netstat -nlp|grep memcached
tcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN 12255/./memcached
tcp 0 0 :::11211 :::* LISTEN 12255/./memcached
udp 0 0 0.0.0.0:11211 0.0.0.0:* 12255/./memcached
udp 0 0 :::11211 :::* 12255/./memcached

Linux安裝memcached