AIX 下安装 memcached
生产环境需要部署memcached 简单列下安装流程
操作系统: AIX 5.2
上传文件
libevent-1.4.13-stable.tar.gz
memcached-1.4.5.tar.gz
可选
zlib-1.2.3-4.aix5.2.ppc.rpm
zlib-devel-1.2.3-4.aix5.2.ppc.rpm
安装 zlib
#rpm -i zlib-1.2.3-4.aix5.2.ppc.rpm #rpm -i zlib-devel-1.2.3-4.aix5.2.ppc.rpm
gunzip libevent-1.4.13-stable.tar.gzgunzip memcached-1.4.5.tar.gztar xvf memcached-1.4.5.tartar xvf libevent-1.4.13-stable.tar
cd libevent-1.4.13-stable./configure --prefix=~/memcachedmakemake install
cd memcached-1.4.5./configure --prefix=~/memcached --with-libevent=~/memcached makemake install
sed 's/thread_init/thread_init_memcached/g' memcached.h>memcached.h sed 's/thread_init/thread_init_memcached/g' memcached.c>memcached.c sed 's/thread_init/thread_init_memcached/g' thread.c>thread.c
cd ~/memcached ./memcached -d -p 11211 -m 64m ./memcached -d -p 11212 -m 64m