0 1 2 3 4 5 6 7 8 9 10 11 12 13 |
[root@Cache ~]# mkdir /byrd/tools -p [root@Cache ~]# cd /byrd/tools/ [root@Cache tools]# wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz [root@Cache tools]# tar -zxf libevent-2.0.21-stable.tar.gz [root@Cache tools]# cd libevent-2.0.21-stable [root@Cache libevent-2.0.21-stable]# ./configure [root@Cache libevent-2.0.21-stable]# make && make install [root@Cache libevent-2.0.21-stable]# cd .. [root@Cache tools]# wget http://memcached.org/files/memcached-1.4.25.tar.gz [root@Cache tools]# tar -zxf memcached-1.4.25.tar.gz [root@Cache tools]# cd memcached-1.4.25 [root@Cache memcached-1.4.25]# ./configure [root@Cache memcached-1.4.25]# make && make install [root@Cache memcached-1.4.25]# memcached -p 11211 -u root -m 16m -c 10240 -d #端口11211 用户root 给16m内存,并发10240 |
错误:
0 1 |
[root@Cache memcached-1.4.25]# memcached --help memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory |
解决方法:
0 1 2 3 4 5 |
echo "/usr/local/lib" >>/etc/ld.so.conf vim /etc/ld.so.conf # 编辑库文件 /usr/local/lib # 添加该行 :wq # 保存退出 ldconfig -v # 使之生效 |
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!