简体   繁体   English

如何在Linux中更新memcached服务器

[英]How to update memcached server in Linux

I have installed memcahced server in my machine 我在我的机器上安装了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

So, I wanted to update it into 1.4.17 since it is the latest one. 因此,我想将其更新为1.4.17,因为它是最新版本。 But, when I say yum update memcached , it yells like this. 但是,当我说yum update memcached ,它会像这样大喊大叫。

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

OS : Ubuntu 12.10 操作系统:Ubuntu 12.10

Result for aptitude show memcached command 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/

Try running aptitude show memcached in the terminal. 尝试在终端中运行aptitude show memcached Then you might find out that the latest version currently supported by the Ubuntu 12.10 repositories is in fact 1.4.14. 然后您可能会发现Ubuntu 12.10存储库当前支持的最新版本实际上是1.4.14。 (You might need to install aptitude if it's not installed.) (如果未安装aptitude,可能需要安装aptitude。)

That is because the package is maintained by the Ubuntu developers to ensure that it is stable for the Ubuntu release you are using. 这是因为该包由Ubuntu开发人员维护,以确保它对您正在使用的Ubuntu版本是稳定的。 For more about Ubuntu repositories, see https://help.ubuntu.com/community/Repositories/Ubuntu 有关Ubuntu存储库的更多信息,请参阅https://help.ubuntu.com/community/Repositories/Ubuntu

If you still want the latest and greatest, you might need to build it from source yourself: https://code.google.com/p/memcached/wiki/NewInstallFromSource 如果您仍然需要最新且最好的,您可能需要自己从源代码构建它: https//code.google.com/p/memcached/wiki/NewInstallFromSource

Edit: Broken link, and no way to substitute it. 编辑:链接断开,无法替换它。 Their wiki docs seems to be suffering after Memcached migrated to GitHub. 在Memcached迁移到GitHub之后,他们的wiki文档似乎正在受到影响。 So http://www.memcached.org/ or https://github.com/memcached/memcached might be the place to start. 所以http://www.memcached.org/https://github.com/memcached/memcached可能是开始的地方。 Hopefully, up to date install-from-source-docs will eventually show up at https://github.com/memcached/memcached/wiki . 希望最新的install-from-source-docs最终会出现在https://github.com/memcached/memcached/wiki上

From Memcached's site: https://memcached.org/downloads 来自Memcached的网站: https//memcached.org/downloads

wget http://memcached.org/latest
tar -zxvf latest
cd memcached-1.x.x
./configure && make && make test && sudo make install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM