centos安装memcache
时间: 2023-09-28 07:10:18 浏览: 106
CentOS 安装 Memcache 服务器. java 做客户端.
1. 安装依赖包
```
yum install libevent libevent-devel -y
```
2. 安装memcached
```
yum install memcached -y
```
3. 启动memcached
```
systemctl start memcached
```
4. 设置memcached自启动
```
systemctl enable memcached
```
5. 验证是否安装成功
```
telnet localhost 11211
```
如果出现以下提示,则表示安装成功:
```
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
```
阅读全文