如何在Ubuntu Hardy上安装memcache?

如何在Ubuntu的硬盘上安装和configurationmemcache?

memcached是你想要的包 :

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. 

安装

只要确保启用了universe并运行apt-get install memcached

组态

/usr/share/doc/有几个文档,你应该在Debian打包的memcached上阅读。 特别是README.Debian:

Memcached在这个包中有两个逻辑用途,一个是可以从标准/etc/init.d/接口运行的系统守护进程,或者是一个可以从命令行从userland运行的系统守护进程,如/ usr / bin / memcached – d

前者已被设置为运行start-memcached脚本,从/etc/memcached.conf中读取configuration。 start-memcached脚本将忽略configuration文件本身中讨论的某些参数。

后者是由Danga提供的二进制文件,并从命令行读取选项,完全忽略Debian特定的configuration文件。

  --Jay Bonci [email protected] 

读取postinst脚本,它应该默认运行: update-rc.d memcached defaults >/dev/null