gpt4 book ai didi

java - 如何在 Linux 中更新 memcached 服务器

转载 作者:可可西里 更新时间:2023-11-01 11:46:17 26 4
gpt4 key购买 nike

我已经在我的机器上安装了 memcahced 服务器

namal@namal:~$ sudo service memcached start
Starting memcached: memcached.

namal@namal:~$ telnet 127.0.0.1 11211
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

version
VERSION 1.4.14

namal@namal:~$ which memcached
/usr/bin/memcached

所以,我想将它更新到 1.4.17,因为它是最新的。但是,当我说 yum update memcached 时,它会这样喊。

Setting up the Update Process
No Match for argument: memcached
No package memcached available.
No Packages marked for Update

操作系统:Ubuntu 12.10

aptitude show memcached 命令的结果

namal@namal:~$ aptitude show memcached
Package: memcached
State: installed
Automatically installed: no
Version: 1.4.14-0ubuntu1
Priority: optional
Section: web
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Uncompressed Size: 226 k
Depends: libc6 (>= 2.4), libevent-2.0-5 (>= 2.0.10-stable), libsasl2-2 (>= 2.1.24), perl, lsb-base (>= 3.2-13), adduser
Suggests: libcache-memcached-perl, libmemcached
Description: A high-performance memory object caching system
Danga Interactive developed memcached to enhance the speed of LiveJournal.com, a site which was already doing 20 million+ dynamic page views per day for 1 million users with a bunch of webservers and a bunch of database servers. memcached dropped
the database load to almost nothing, yielding faster page load times for users, better resource utilization, and faster access to the databases on a memcache miss.

memcached optimizes specific high-load serving applications that are designed to take advantage of its versatile no-locking memory access system. Clients are available in several different programming languages, to suit the needs of the specific
application. Traditionally this has been used in mod_perl apps to avoid storing large chunks of data in Apache memory, and to share this burden across several machines.
Homepage: http://www.danga.com/memcached/

最佳答案

尝试在终端中运行 aptitude show memcached。然后你可能会发现 Ubuntu 12.10 存储库当前支持的最新版本实际上是 1.4.14。 (如果未安装,您可能需要安装 aptitude。)

这是因为该软件包由 Ubuntu 开发人员维护,以确保它对于您正在使用的 Ubuntu 版本是稳定的。有关 Ubuntu 存储库的更多信息,请参阅 https://help.ubuntu.com/community/Repositories/Ubuntu

如果您仍然想要最新最好的,您可能需要自己从源代码构建它: https://code.google.com/p/memcached/wiki/NewInstallFromSource

编辑: 损坏的链接,无法替代。在 Memcached 迁移到 GitHub 之后,他们的 wiki 文档似乎受到了影响。所以http://www.memcached.org/https://github.com/memcached/memcached可能是开始的地方。希望最新的 install-from-source-docs 最终会出现在 https://github.com/memcached/memcached/wiki。 .

关于java - 如何在 Linux 中更新 memcached 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21374609/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com