CentOS 7.x 編譯安裝 memcached

memcached - a distributed memory object caching system

https://memcached.org/


Download memcached

https://memcached.org/downloads


libevent

https://libevent.org/


libevent/libevent: Event notification library

https://github.com/libevent/libevent


Releases · libevent/libevent

https://github.com/libevent/libevent/releases


下載 libevent
cd /usr/local/src
lynx https://github.com/libevent/libevent/releases/download/release-2.1.11-stable/libevent-2.1.11-stable.tar.gz

安裝 libevent
tar zxf libevent-2.1.11-stable.tar.gz
cd libevent-2.1.11-stable
./configure --prefix=/usr/local/libevent
make
make check
make install
make clean

下載 memcached
cd /usr/local/src
lynx http://www.memcached.org/files/memcached-1.5.20.tar.gz

安裝 memcached
tar zxf memcached-1.5.20.tar.gz
cd memcached-1.5.20
./configure --prefix=/usr/local/memcached --with-libevent=/usr/local/libevent
make
make install
make clean

執行位置
/usr/local/memcached/bin/memcached
指令說明
/usr/local/memcached/bin/memcached -h
啟動 memcached
/usr/local/memcached/bin/memcached -u daemon -d -l 127.0.0.1 -p 11211 -m 256 -t 4

libmemcached in Launchpad

https://launchpad.net/libmemcached


下載 libmemcached
cd /usr/local/src
lynx https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz

安裝 libmemcached
tar zxf libmemcached-1.0.18.tar.gz
cd libmemcached-1.0.18
./configure --prefix=/usr/local/libmemcached --with-memcached=/usr/local/memcached --with-mysql=/usr/local/mysql/bin/mysql_config
make
make check
make install
make clean
新增時間 2020-01-22
最後更新 2022-02-09