linux下编译安装启动memcached

2018-01-07  本文已影响86人  Hiapk_Metal

步骤及截图如下:

  1. 先安装编译器GCC等工具 //yum install gcc make libtool autoconf
  2. 然后开始拉memcache,libevent(依赖,选稳定stable版本)再编译memcache
  3. //wget http://www.memcached.org/files/memcached-1.5.4.tar.gz
  4. //wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz no check certificate(因为有s)
  5. (win环境下好了,用ftp传也行)下载地址:www.memcache.org libevent.org
  6. 准备编译环境(gcc make cmake autoconf libtool等工具)
  7. 先编译libevent,再编译memcached
  8. 编译memcaced要制定libevent路径
  9. ./configure --prefix=/usr/local/memcached --with-libevent=/usr/local/libevent
  10. make && make install
1.png
2.png

检查下安装5件套好了没??


3.png
编译

tar zxvf libevent-2.1.8-stable.tar.gz


4.png
三步曲,./configure->make && make install
检查编译环境,相关库,编译到指定到 /usr/local/libevent
(观察报错信息)
5.png
6.png
7.png

开始编译(来自太平洋远岸的良心商家服务器不到8s就好了,像风一样自由)
依赖libevent编译 memcached


8.png
9.png
10.png
检查
11.png
启动运行
12.png
server端启动运行.png
客户端win的cmd下

telnet ipaddress 11211

13.png
上一篇下一篇

猜你喜欢

热点阅读