Pensamientos al azar acerca de BMW FAQ Club
Install memcached
Escrito 06-may-2009 a las 16:18 por Danny
Etiquetas cachear queries, memcached, memoria distribuida
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.
Download the latest version of memcached
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
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
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
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
$ /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 you can create the daemon files to start memcached as any other service make
Daemon scripts for memcached - BMW FAQ Club
Total de Comentarios 0





