启动Memcached报错:/usr/local/memcached/bin/memcached: error while loading shared libraries: libevent-2.1.so.6: cannot open shared object file: No such file or directory

1、查找文件放在哪里

sudo find / -name libevent-2.1.so.6

发现放在/usr/local/lib/libevent-2.1.so.6下。

2、创建软链接

sudo ln -s /usr/local/lib/libevent-2.1.so.6 /usr/lib/libevent-2.1.so.6

 

参考:

https://my.oschina.net/itblog/blog/633074

posted @ 2017-09-23 09:32  EasonJim  阅读(3451)  评论(0编辑  收藏  举报