Linux 上安装 memcached 的问题 新手请教

bccu 北京车天下资讯有限公司 技术部研发主管  2013-05-30 02:21:51
提示:You are using libevent 1.2.
Please upgrade to a more recent version (1.3 or newer)

怎么处理呢,我理解是libevent的版本问题,我又装了一个高版的也还是不行

...全文
129 点赞 收藏 17
写回复
17 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
bccu 2013-06-01
引用 16 楼 mp777323 的回复:
[quote=引用 14 楼 bccu 的回复:] # ./memcached -i 输入这个命令能看到信息,是没有正常启动吗?
把原来的kill掉, 用这个才对 /usr/bin/memcached -l 192.168.*.* -d -m 1024 -u nobody -p 11211 -c 1024 -P /tmp/memcached.pid [/quote] 终于可以正常访问了,多谢帮助。
回复
bccu 2013-05-31
# ./memcached -i 输入这个命令能看到信息,是没有正常启动吗?
回复
bccu 2013-05-31
引用 11 楼 mp777323 的回复:
# echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games /usr/local/bin就在PATH里面,因此查的到
./memcached -d -m 1024 -u root -p 11211 -c 1024 -p /tmp/memcached.pid 我运行上面的命令,没有提示错误 但是运行 telnet 127.0.0.1 11211 报:telnet: connect to address 127.0.0.1: Connection refused
回复
bccu 2013-05-31
引用 11 楼 mp777323 的回复:
# echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games /usr/local/bin就在PATH里面,因此查的到
多谢,安装上了,不过程序访问还有问题。
回复
pix77 2013-05-31
引用 14 楼 bccu 的回复:
# ./memcached -i 输入这个命令能看到信息,是没有正常启动吗?
把原来的kill掉, 用这个才对 /usr/bin/memcached -l 192.168.*.* -d -m 1024 -u nobody -p 11211 -c 1024 -P /tmp/memcached.pid
回复
pix77 2013-05-31
引用 14 楼 bccu 的回复:
# ./memcached -i 输入这个命令能看到信息,是没有正常启动吗?
[root@wa-hq memcached-1.4.10]# memcached -i memcached 1.4.4 Copyright (c) 2003, Danga Interactive, Inc. <http://www.danga.com/> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the Danga Interactive nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
回复
pix77 2013-05-30
# echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games /usr/local/bin就在PATH里面,因此查的到
回复
pix77 2013-05-30
引用 9 楼 bccu 的回复:
[quote=引用 8 楼 mp777323 的回复:] 没错 [quote=引用 7 楼 bccu 的回复:] [quote=引用 6 楼 mp777323 的回复:] [quote=引用 5 楼 bccu 的回复:] [quote=引用 4 楼 mp777323 的回复:] 我这边的: root@cloud01:~/memcached-1.4.10# ls /usr/local/lib/libevent* /usr/local/lib/libevent-2.0.so.5 /usr/local/lib/libevent-2.0.so.5.1.9 /usr/local/lib/libevent.a /usr/local/lib/libevent_core-2.0.so.5 /usr/local/lib/libevent_core-2.0.so.5.1.9 /usr/local/lib/libevent_core.a /usr/local/lib/libevent_core.la /usr/local/lib/libevent_core.so /usr/local/lib/libevent_extra-2.0.so.5 /usr/local/lib/libevent_extra-2.0.so.5.1.9 /usr/local/lib/libevent_extra.a /usr/local/lib/libevent_extra.la /usr/local/lib/libevent_extra.so /usr/local/lib/libevent.la /usr/local/lib/libevent_pthreads-2.0.so.5 /usr/local/lib/libevent_pthreads-2.0.so.5.1.9 /usr/local/lib/libevent_pthreads.a /usr/local/lib/libevent_pthreads.la /usr/local/lib/libevent_pthreads.so /usr/local/lib/libevent.so root@cloud01:~/memcached-1.4.10#
引用 3 楼 mp777323 的回复:
libevent是安装在哪个目录底下? /usr/local/lib?还是你指定的目录 [quote=引用 2 楼 bccu 的回复:] [quote=引用 1 楼 mp777323 的回复:] 你的mc源代码包版本?
1.4.10[/quote] libevent是安装在哪个目录底下? /usr/local/lib?还是你指定的目录[/quote] 挺乱了,原来有,是别人装的,我自己又装了一下,怎么删了呢,我想升级libevent,也不会[/quote] 你先把这些libevent的文件先移动到其他地方,算是个备份, 然后,你再用libevent源码包安装就行了[/quote] Linux上的软件,只要把文件删了,就是删除了吗?[/quote] 没错[/quote] 那用whereis 命令查看到的软件信息是怎么来的呢?[/quote] 他就是读PATH这个变量,找里面你需要的
回复
bccu 2013-05-30
引用 8 楼 mp777323 的回复:
没错 [quote=引用 7 楼 bccu 的回复:] [quote=引用 6 楼 mp777323 的回复:] [quote=引用 5 楼 bccu 的回复:] [quote=引用 4 楼 mp777323 的回复:] 我这边的: root@cloud01:~/memcached-1.4.10# ls /usr/local/lib/libevent* /usr/local/lib/libevent-2.0.so.5 /usr/local/lib/libevent-2.0.so.5.1.9 /usr/local/lib/libevent.a /usr/local/lib/libevent_core-2.0.so.5 /usr/local/lib/libevent_core-2.0.so.5.1.9 /usr/local/lib/libevent_core.a /usr/local/lib/libevent_core.la /usr/local/lib/libevent_core.so /usr/local/lib/libevent_extra-2.0.so.5 /usr/local/lib/libevent_extra-2.0.so.5.1.9 /usr/local/lib/libevent_extra.a /usr/local/lib/libevent_extra.la /usr/local/lib/libevent_extra.so /usr/local/lib/libevent.la /usr/local/lib/libevent_pthreads-2.0.so.5 /usr/local/lib/libevent_pthreads-2.0.so.5.1.9 /usr/local/lib/libevent_pthreads.a /usr/local/lib/libevent_pthreads.la /usr/local/lib/libevent_pthreads.so /usr/local/lib/libevent.so root@cloud01:~/memcached-1.4.10#
引用 3 楼 mp777323 的回复:
libevent是安装在哪个目录底下? /usr/local/lib?还是你指定的目录 [quote=引用 2 楼 bccu 的回复:] [quote=引用 1 楼 mp777323 的回复:] 你的mc源代码包版本?
1.4.10[/quote] libevent是安装在哪个目录底下? /usr/local/lib?还是你指定的目录[/quote] 挺乱了,原来有,是别人装的,我自己又装了一下,怎么删了呢,我想升级libevent,也不会[/quote] 你先把这些libevent的文件先移动到其他地方,算是个备份, 然后,你再用libevent源码包安装就行了[/quote] Linux上的软件,只要把文件删了,就是删除了吗?[/quote] 没错[/quote] 那用whereis 命令查看到的软件信息是怎么来的呢?
回复
pix77 2013-05-30
没错
引用 7 楼 bccu 的回复:
[quote=引用 6 楼 mp777323 的回复:] [quote=引用 5 楼 bccu 的回复:] [quote=引用 4 楼 mp777323 的回复:] 我这边的: root@cloud01:~/memcached-1.4.10# ls /usr/local/lib/libevent* /usr/local/lib/libevent-2.0.so.5 /usr/local/lib/libevent-2.0.so.5.1.9 /usr/local/lib/libevent.a /usr/local/lib/libevent_core-2.0.so.5 /usr/local/lib/libevent_core-2.0.so.5.1.9 /usr/local/lib/libevent_core.a /usr/local/lib/libevent_core.la /usr/local/lib/libevent_core.so /usr/local/lib/libevent_extra-2.0.so.5 /usr/local/lib/libevent_extra-2.0.so.5.1.9 /usr/local/lib/libevent_extra.a /usr/local/lib/libevent_extra.la /usr/local/lib/libevent_extra.so /usr/local/lib/libevent.la /usr/local/lib/libevent_pthreads-2.0.so.5 /usr/local/lib/libevent_pthreads-2.0.so.5.1.9 /usr/local/lib/libevent_pthreads.a /usr/local/lib/libevent_pthreads.la /usr/local/lib/libevent_pthreads.so /usr/local/lib/libevent.so root@cloud01:~/memcached-1.4.10#
引用 3 楼 mp777323 的回复:
libevent是安装在哪个目录底下? /usr/local/lib?还是你指定的目录 [quote=引用 2 楼 bccu 的回复:] [quote=引用 1 楼 mp777323 的回复:] 你的mc源代码包版本?
1.4.10[/quote] libevent是安装在哪个目录底下? /usr/local/lib?还是你指定的目录[/quote] 挺乱了,原来有,是别人装的,我自己又装了一下,怎么删了呢,我想升级libevent,也不会[/quote] 你先把这些libevent的文件先移动到其他地方,算是个备份, 然后,你再用libevent源码包安装就行了[/quote] Linux上的软件,只要把文件删了,就是删除了吗?[/quote] 没错
回复
bccu 2013-05-30
引用 6 楼 mp777323 的回复:
[quote=引用 5 楼 bccu 的回复:] [quote=引用 4 楼 mp777323 的回复:] 我这边的: root@cloud01:~/memcached-1.4.10# ls /usr/local/lib/libevent* /usr/local/lib/libevent-2.0.so.5 /usr/local/lib/libevent-2.0.so.5.1.9 /usr/local/lib/libevent.a /usr/local/lib/libevent_core-2.0.so.5 /usr/local/lib/libevent_core-2.0.so.5.1.9 /usr/local/lib/libevent_core.a /usr/local/lib/libevent_core.la /usr/local/lib/libevent_core.so /usr/local/lib/libevent_extra-2.0.so.5 /usr/local/lib/libevent_extra-2.0.so.5.1.9 /usr/local/lib/libevent_extra.a /usr/local/lib/libevent_extra.la /usr/local/lib/libevent_extra.so /usr/local/lib/libevent.la /usr/local/lib/libevent_pthreads-2.0.so.5 /usr/local/lib/libevent_pthreads-2.0.so.5.1.9 /usr/local/lib/libevent_pthreads.a /usr/local/lib/libevent_pthreads.la /usr/local/lib/libevent_pthreads.so /usr/local/lib/libevent.so root@cloud01:~/memcached-1.4.10#
引用 3 楼 mp777323 的回复:
libevent是安装在哪个目录底下? /usr/local/lib?还是你指定的目录 [quote=引用 2 楼 bccu 的回复:] [quote=引用 1 楼 mp777323 的回复:] 你的mc源代码包版本?
1.4.10[/quote] libevent是安装在哪个目录底下? /usr/local/lib?还是你指定的目录[/quote] 挺乱了,原来有,是别人装的,我自己又装了一下,怎么删了呢,我想升级libevent,也不会[/quote] 你先把这些libevent的文件先移动到其他地方,算是个备份, 然后,你再用libevent源码包安装就行了[/quote] Linux上的软件,只要把文件删了,就是删除了吗?
回复
pix77 2013-05-30
引用 5 楼 bccu 的回复:
[quote=引用 4 楼 mp777323 的回复:] 我这边的: root@cloud01:~/memcached-1.4.10# ls /usr/local/lib/libevent* /usr/local/lib/libevent-2.0.so.5 /usr/local/lib/libevent-2.0.so.5.1.9 /usr/local/lib/libevent.a /usr/local/lib/libevent_core-2.0.so.5 /usr/local/lib/libevent_core-2.0.so.5.1.9 /usr/local/lib/libevent_core.a /usr/local/lib/libevent_core.la /usr/local/lib/libevent_core.so /usr/local/lib/libevent_extra-2.0.so.5 /usr/local/lib/libevent_extra-2.0.so.5.1.9 /usr/local/lib/libevent_extra.a /usr/local/lib/libevent_extra.la /usr/local/lib/libevent_extra.so /usr/local/lib/libevent.la /usr/local/lib/libevent_pthreads-2.0.so.5 /usr/local/lib/libevent_pthreads-2.0.so.5.1.9 /usr/local/lib/libevent_pthreads.a /usr/local/lib/libevent_pthreads.la /usr/local/lib/libevent_pthreads.so /usr/local/lib/libevent.so root@cloud01:~/memcached-1.4.10#
引用 3 楼 mp777323 的回复:
libevent是安装在哪个目录底下? /usr/local/lib?还是你指定的目录 [quote=引用 2 楼 bccu 的回复:] [quote=引用 1 楼 mp777323 的回复:] 你的mc源代码包版本?
1.4.10[/quote] libevent是安装在哪个目录底下? /usr/local/lib?还是你指定的目录[/quote] 挺乱了,原来有,是别人装的,我自己又装了一下,怎么删了呢,我想升级libevent,也不会[/quote] 你先把这些libevent的文件先移动到其他地方,算是个备份, 然后,你再用libevent源码包安装就行了
回复
bccu 2013-05-30
引用 4 楼 mp777323 的回复:
我这边的: root@cloud01:~/memcached-1.4.10# ls /usr/local/lib/libevent* /usr/local/lib/libevent-2.0.so.5 /usr/local/lib/libevent-2.0.so.5.1.9 /usr/local/lib/libevent.a /usr/local/lib/libevent_core-2.0.so.5 /usr/local/lib/libevent_core-2.0.so.5.1.9 /usr/local/lib/libevent_core.a /usr/local/lib/libevent_core.la /usr/local/lib/libevent_core.so /usr/local/lib/libevent_extra-2.0.so.5 /usr/local/lib/libevent_extra-2.0.so.5.1.9 /usr/local/lib/libevent_extra.a /usr/local/lib/libevent_extra.la /usr/local/lib/libevent_extra.so /usr/local/lib/libevent.la /usr/local/lib/libevent_pthreads-2.0.so.5 /usr/local/lib/libevent_pthreads-2.0.so.5.1.9 /usr/local/lib/libevent_pthreads.a /usr/local/lib/libevent_pthreads.la /usr/local/lib/libevent_pthreads.so /usr/local/lib/libevent.so root@cloud01:~/memcached-1.4.10#
引用 3 楼 mp777323 的回复:
libevent是安装在哪个目录底下? /usr/local/lib?还是你指定的目录 [quote=引用 2 楼 bccu 的回复:] [quote=引用 1 楼 mp777323 的回复:] 你的mc源代码包版本?
1.4.10[/quote] libevent是安装在哪个目录底下? /usr/local/lib?还是你指定的目录[/quote] 挺乱了,原来有,是别人装的,我自己又装了一下,怎么删了呢,我想升级libevent,也不会
回复
pix77 2013-05-30
我这边的: root@cloud01:~/memcached-1.4.10# ls /usr/local/lib/libevent* /usr/local/lib/libevent-2.0.so.5 /usr/local/lib/libevent-2.0.so.5.1.9 /usr/local/lib/libevent.a /usr/local/lib/libevent_core-2.0.so.5 /usr/local/lib/libevent_core-2.0.so.5.1.9 /usr/local/lib/libevent_core.a /usr/local/lib/libevent_core.la /usr/local/lib/libevent_core.so /usr/local/lib/libevent_extra-2.0.so.5 /usr/local/lib/libevent_extra-2.0.so.5.1.9 /usr/local/lib/libevent_extra.a /usr/local/lib/libevent_extra.la /usr/local/lib/libevent_extra.so /usr/local/lib/libevent.la /usr/local/lib/libevent_pthreads-2.0.so.5 /usr/local/lib/libevent_pthreads-2.0.so.5.1.9 /usr/local/lib/libevent_pthreads.a /usr/local/lib/libevent_pthreads.la /usr/local/lib/libevent_pthreads.so /usr/local/lib/libevent.so root@cloud01:~/memcached-1.4.10#
回复
pix77 2013-05-30
libevent是安装在哪个目录底下? /usr/local/lib?还是你指定的目录
引用 2 楼 bccu 的回复:
[quote=引用 1 楼 mp777323 的回复:] 你的mc源代码包版本?
1.4.10[/quote] libevent是安装在哪个目录底下? /usr/local/lib?还是你指定的目录
回复
bccu 2013-05-30
引用 1 楼 mp777323 的回复:
你的mc源代码包版本?
1.4.10
回复
pix77 2013-05-30
你的mc源代码包版本?
回复
相关推荐
发帖
系统维护与使用区
创建于2007-08-27

1.9w+

社区成员

系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
申请成为版主
帖子事件
创建了帖子
2013-05-30 02:21
社区公告
暂无公告