作者:宇中尘粒 | 来源:互联网 | 2023-08-30 09:12
步骤及截图如下:先安装编译器GCC等工具yuminstallgccmakelibtoolautoconf然后开始拉memcache,libevent(依赖,选稳定stable版本)
步骤及截图如下:
先安装编译器GCC等工具 //yum install gcc make libtool autoconf
然后开始拉memcache,libevent(依赖,选稳定stable版本)再编译memcache
//wget http://www.memcached.org/files/memcached-1.5.4.tar.gz
//wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz no check certificate(因为有s)
(win环境下好了,用ftp传也行)下载地址:www.memcache.org libevent.org
准备编译环境(gcc make cmake autoconf libtool等工具)
先编译libevent,再编译memcached
编译memcaced要制定libevent路径
./configure –prefix=/usr/local/memcached –with-libevent=/usr/local/libevent
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