memcached: error while loading shared libraries: libevent-2.0.so.5: cannot o解决
来源:互联网 发布:ds数据精灵使用教程 编辑:程序博客网 时间:2024/05/17 03:49
memcached: error while loading shared libraries: libevent-2.0.so.5: cannot o解决
memcached基本选项
-p 端口 监听tcp端口
-d 以守护进程方式运行memcached
-u username 以username运行
-m 《num》 最大的内存使用,单位是MB ,缺省是64MB
-c <num> 软连接数量,缺省是1024
-v 输出警告和错误信息
-vv 打印客户端的请求和返回信息
检查memcached是否正常运行
#ps aux | grep memcached
#telnet localhost 11211
....
stats
...
会显示memcached的基本信息
如果启动时出现“memcached: error while loading shared libraries:libevent-2.0.so.5: cannot
open shared object file: No such file or directory”之类的信息,表示memcached 找不到
libevent 的位置
所以,请先使用whereis libevent 得到位置,然后连接到memcached 所寻找的路径
首先查看,libevent 在哪里
# whereis libevent
libevent: /usr/local/lib/libevent.la /usr/local/lib/libevent.so /usr/local/lib/libevent.a
然后,再看memcached 从哪里找它
# LD_DEBUG=libs memcached -v 2>&1 > /dev/null | less
可以看到:是/usr/lib/libevent-2.0.so.5,所以,创建软链
[root@localhost tools]# ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5
再次启动
关闭memcached :pkill memcached
- memcached: error while loading shared libraries: libevent-2.0.so.5: cannot o解决
- memcached: error while loading shared libraries: libevent-2.0.so.5: cannot o解决
- memcached: error while loading shared libraries: libevent-2.0.so.5: cannot o解决
- memcached: error while loading shared libraries: libevent-2.0.so.5: cannot o
- memcached: error while loading shared libraries:libevent-2.0.so.5: cannot open shared object file:
- memcached安装时memcached: error while loading shared libraries:libevent-2.0.so.5: cannot 的问题解决
- memcached error while loading shared libraries: libevent-2.0.so.5
- error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file
- 启动Memcache,出现memcached: error while loading shared libraries: libevent-1.4.so.1: cannot open shared
- ./memcached: error while loading shared libraries: libevent-1.3.so.1: cannot open shared object file
- error while loading shared libraries: libevent-2.0.so.5 (安装MEMCACHED问题)
- error while loading shared libraries: libevent-2.0.so.5 (安装MEMCACHED问题)
- error while loading shared libraries: libevent-2.0.so.5 (安装MEMCACHED问题)
- error while loading shared libraries: libevent-2.0.so.5
- error while loading shared libraries: libevent-2.0.so.5
- error while loading shared libraries: libevent-2.0.so.5
- error while loading shared libraries: libevent-2.0.so.5
- error while loading shared libraries: libevent-2.0.so.5解决办法
- centos 5.8 64bit rpm 安装mysql5.5
- CentOS 6.2 二进制安装apache2.4.3出现configure: error: APR-util not found. Please read the documentation的解决方
- USB OTG驱动分析(一)
- hdu 3549 Flow Problem【最大流增广路入门模板题】
- JVM 集成化工具JConsole
- memcached: error while loading shared libraries: libevent-2.0.so.5: cannot o解决
- 适应iPhone5的尺寸
- java 动态代理深度学习(Proxy,InvocationHandler),含$Proxy0源码
- [转]JQuery.Ajax之错误调试帮助信息
- OTG驱动分析(二)
- TreeView 拖动排序
- 对象引用类型
- 10个直接可以用的jQuery代码片段
- 学习IOS编程必须要知道的一些知识