memcached部署

概述

memcache是一款高性能kv缓存系统,多用于缓存高频率查询的结果,不过慢慢被redis取代

开干

env

  • centos7.x 2c4g

src

src-libevent && src-memcache

tar

  • libevent-release-1.4.14-stable.tar.gz
  • memcached-1.5.12.tar.gz

requirement

yum install -y autoconf automake libtool  gcc gcc-c++ make

src-binlding libevent

//自动编译生产configure 文件
sh autogen.sh

//构建
./configure --prefix=/usr/local/libevent -q
make -s && make install -s

src-building memcache

./configure --prefix=/servyou/memcached/memcache --with-libevent=/servyou/memcached/libevent  -q
make -s && make install -s

testing

./bin/memcached -d -u weblogic -l 10.111.0.2 -m 200  -p 11211 -c 102400 -U 0  -P /tmp/memcached.pid
posted @ 2023-02-27 11:31  mvpbang  阅读(27)  评论(0编辑  收藏  举报