Memcached安装踩坑记录

1、依赖

yum install libevent-devel

2、官网提供的安装步骤

2.1 源码安装

wget http://memcached.org/latest

tar  - zxvf memcached - 1.x .x.tar.gz
cd memcached - 1.x .x
. / configure && make && make test && sudo make install
 

3、踩坑记录

3.1 运行make test时报错Can't locate Test/More.pm in ...

查了好久,发现时make test工具的问题

解决方法:

yum install yum install perl-Test*

3.2 启动memcached后,无法远程连接

解决方法:

关闭Linux防火墙

systemctl stop firewalld.service          #centos临时关闭防火墙
systemctl disable firewalld.service     #centos开机关闭防火墙

3.3 windows使用telnet ip port无法连接

解决方法:

在控制面板里开启telnet客户端服务

猜你喜欢

转载自www.cnblogs.com/igzh/p/8975019.html