Como instalar o memcache no Ubuntu Hardy?

1

Como faço para instalar e configurar o memcache no Ubuntu Hardy?

    
por April 29.03.2010 / 06:05

1 resposta

3

memcached é o pacote você quer:

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.

Instalação

Apenas certifique-se de que o universo esteja ativado e execute apt-get install memcached .

Configuração

Em /usr/share/doc/ há vários documentos que você deve ler no memcached, conforme implementado pelo pacote Debian. Em particular, o README.Debian:

Memcached has two logical uses in this package, a system daemon that can be run from the standard /etc/init.d/ interface, or one that can be run from userland from a the command line such as /usr/bin/memcached -d

The former has been setup to run through the start-memcached script, reading in the configuration from /etc/memcached.conf. The start-memcached script ignores certain parameters as discussed in the configuration file itself.

The latter is the binary as provided by Danga, and reads in options from the command line, ignoring the Debian-specific configuration file entirely.

  --Jay Bonci
  [email protected]

Lendo o script postinst, ele deve ser executado por padrão: update-rc.d memcached defaults >/dev/null

    
por 29.03.2010 / 08:35

Tags