`

memcached 启动报错No such file or directory

阅读更多

启动memcached出现以下错误:

error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory

 

 

解决这个问题有如下方法:
1>首先 find / -name libevent-2.0.so.5 找到缺少的链接文件到底在那儿。
2> LD_DEBUG=libs /usr/local/memcached/bin/memcached -v
3> 从Debug信息中就知道程序去哪里找链接库了。我这边程序去 trying file=/usr/lib/libevent-2.0.so.5 而我的链接库的实际存储位置是 /usr/local/lib/libevent-2.0.so.5

4>做一个软连接 ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5

5>完成

 


 memchached获取运行状态
echo stats | nc localhost 11211

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics