install memcache under centos 6.3

title: install memcache under centos 6.3
date: 2015-04-28 17:09:32 +0800
comments: true
category: memcache
tags: memcache,linux

Requirement

yum install -y libevent libevent-devel

Installation

get source code

wget http://memcached.org/files/memcached-1.4.24.tar.gz

Installation

tar -zxvf memcached-1.4.24.tar.gz
cd memcached-1.4.24
./configure
make
make install

verify

[root@e167418cd3b2 /]# ls -lart /usr/local/bin/memcached
-rwxr-xr-x 1 root root 431374 Apr 27 10:41 /usr/local/bin/memcached
[root@e167418cd3b2 /]# memcached -h
memcached 1.4.24
-p       TCP port number to listen on (default: 11211)
-U       UDP port number to listen on (default: 11211, 0 is off)
-s      UNIX socket path to listen on (disables network support)
-A            enable ascii "shutdown" command
-a      access mask for UNIX socket, in octal (default: 0700)
-l      interface to listen on (default: INADDR_ANY, all addresses)


yum install -y wget tar make gcc libevent libevent-devel
wget http://memcached.org/files/memcached-1.4.24.tar.gz && tar -zxvf memcached-1.4.24.tar.gz && cd memcached-1.4.24 && ./configure && make && make install
cd / && rm -rf memcached-1.4.24* && yum clean all

start

/usr/local/bin/memcached -u root -m 128 -p 22422 -c 512 -P /memcached_22422.pid

你可能感兴趣的:(install memcache under centos 6.3)