CentOS下安装memcached(yum 方式)

服务器环境:CentOS 5
人比较懒,所以用yum方式安装.命令行下执行
# yum install memcached
报错:
rpmdb: Lock table is out of available locker entries
rpmdb: Unknown locker ID: b7d
error: db4 error(22) from db->close
rpm 包管理器挂了。
运行以下命令修复
# cd /var/lib/rpm
# rm -rf __db.00*
# rpm --rebuilddb
好了,再次运行

# yum install memcached
更新速度慢得要死,所以,先装了一下 yum的镜像
# yum install fastestmirror
这下爽多了。
再执行
# yum install memcached
顺利装好 memcached
# rpm -qa|grep memcached
可以查看一下 memcached 版本号
启动 memcached
# memcached -d -u root
然后
# telnet localhost 11211
顺利出现
Escape character is '^]'.
运行命令
stats
STAT pid 21804
STAT uptime 7
STAT time 1266824945
STAT version 1.2.8
STAT pointer_size 64
STAT rusage_user 0.000000
STAT rusage_system 0.000999
STAT curr_items 0
STAT total_items 0
STAT bytes 0
STAT curr_connections 10
STAT total_connections 11
STAT connection_structures 11
STAT cmd_flush 0
STAT cmd_get 0
STAT cmd_set 0
STAT get_hits 0
STAT get_misses 0
STAT evictions 0
STAT bytes_read 7
STAT bytes_written 0
STAT limit_maxbytes 67108864
STAT threads 5
STAT accepting_conns 1
STAT listen_disabled_num 0
END

大功告成
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值