首頁論壇分類作業系統LinuxCentOS 7.x 編譯安裝 memcached
CentOS 7.x 編譯安裝 memcached
   編 輯        刪 除      # 5c8224a78fa80 發表: Odyssey     新增:2018-09-19 14:35:48     更新:2018-09-19 14:35:48

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.8-stable/libevent-2.1.8-stable.tar.gz

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

下載 memcached
cd /usr/local/src
lynx https://memcached.org/files/memcached-1.5.10.tar.gz

安裝 memcached
tar zxf memcached-1.5.10.tar.gz
cd memcached-1.5.10
./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 2048 -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


夢幻奧德修斯 - OdysseusDream
Website:https://www.odysseusdream.com/
Discord:https://discord.gg/ht4mwMG
FB社團:https://www.facebook.com/groups/OdysseusDream/

我要回覆
CentOS 7.x 編譯安裝 memcached
首頁論壇分類作業系統LinuxCentOS 7.x 編譯安裝 memcached