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

时间:2023-12-23 12:18:14

启动memcached的时候发现找不到libevent的库,这是memcache的默认查找路径不包含libevent的安装路径,所以要告诉memcached去哪里查找libevent。

操作命令如下:

1.touch /etc/ld.so.conf.d/libevent.conf

2.echo 'libevent的安装路径'  >>  /etc/ld.so.conf.d/libevent.conf;

3.ldconfig