BMW FAQ Club BMW FAQ Club
Registrarse Blogs Galería Marcar como leído Ayuda


Regresar   BMW FAQ Club > Blogs > Danny Bembibre (dbembibre)


Pensamientos al azar acerca de BMW FAQ Club
Valorar Entrada

Install memcached

Escrito 06-may-2009 a las 16:18 por Danny

I adquire a new backend server for my forum, this is for database server.
Is a Dell poweredge 1950 with 8GB of RAM and Dual Intel Xeon E5410 Dual Core $Mb cache.
I only install MySQL 5.0.67 64Bits with Percona Patchs hig performance.

In first place you need install libevent, you can compile by hand or install via YUM.

Código:
$ wget http://www.monkey.org/~provos/libevent-1.4.8-stable.tar.gz

$ tar xzf libevent-1.4.8-stable.tar.gz

$ cd libevent-1.4.8-stable

$ ./configure

$ make && make install
Download the latest version of memcached

Código:
$ wget http://www.danga.com/memcached/dist/memcached-1.2.6.tar.gz

$ tar xzf memcached-1.2.6.tar.gz

$ cd memcached-1.2.6

$ ./configure  

$ make

$ make install
Now testif everything work well


$ /usr/local/bin/memcached -u nobody -d -m 64 -l 192.168.128.35 -p 11211
/usr/local/bin/memcached: error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory

run the following commad to see for what path is looking the program

[root@igasi memcached-1.2.6]# LD_DEBUG=libs memcached -v
2989: find library=libevent-1.4.so.2 [0]; searching
2989: search cache=/etc/ld.so.cache
2989: search path=/lib64/tls/x86_64:/lib64/tls:/lib64/x86_64:/lib64:/usr/lib64/tls/x86_64:/usr/lib64/tls:/usr/lib64/x86_64:/usr/lib64 (system search path)
2989: trying file=/lib64/tls/x86_64/libevent-1.4.so.2
2989: trying file=/lib64/tls/libevent-1.4.so.2
2989: trying file=/lib64/x86_64/libevent-1.4.so.2
2989: trying file=/lib64/libevent-1.4.so.2
2989: trying file=/usr/lib64/tls/x86_64/libevent-1.4.so.2
2989: trying file=/usr/lib64/tls/libevent-1.4.so.2
2989: trying file=/usr/lib64/x86_64/libevent-1.4.so.2
2989: trying file=/usr/lib64/libevent-1.4.so.2
2989:
memcached: error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory

Locate the file surely that is in /usr/local/lib and make a symbolic link

Código:
$ ln -s /usr/local/lib/libevent-1.4.so.2.1.2 /usr/lib64/libevent-1.4.so.2
Now all is working well

Now you can create the daemon files to start memcached as any other service make

Daemon scripts for memcached - BMW FAQ Club
Categoría: BMWFAQ Club, Php, Optimize, Linux
Vistas 1709 Comentarios 0
« Anterior     Regresar     Siguiente »
Total de Comentarios 0

Comentarios

 

Todas las horas son GMT +2. La hora es 16:30.
© 1998-2011 BMW FAQ CLUB
Para cualquier información relacionada con este sitio contacte con Danny
Para ejercer su derecho de cancelación de sus datos por favor solicitelo a través del siguiente correo:info(arroba)bmwfaq.com
Todos los logos y marcas registradas que puedan aparecer, son propiedad de sus respectivos dueños.
Esta web cumple con las leyes LSSI como puede ver en: Condiciones de uso y Privacidad de datos
Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.
Página Generada en 0.11174 segundos