First, there are problems
[Email protected] memcached-1.4.17]#/usr/local/bin/memcached-d-M 10-u root-p 11211-c 32-p/tmp/memcached.pid
/usr/local/bin/memcached:error while loading shared libraries:libevent-1.4.so.2:cannot open shared object File:no such File or directory
Ii. Solutions
2.1. Find the actual location of the file
[Email protected] memcached-1.4.17]# Find/-name libevent-1.4.so.2
/home/libevent-1.4.14b-stable/.libs/libevent-1.4.so.2
/usr/local/lib/libevent-1.4.so.2
2.2. Print Debug information
[Email protected] memcached-1.4.17]# ld_debug=libs/usr/local/bin/memcached-v
24264:find library=libevent-1.4.so.2 [0]; Searching
24264: Search Cache=/etc/ld.so.cache
24264: 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)
24264: trying file=/lib64/tls/x86_64/libevent-1.4.so.2
24264: trying file=/lib64/tls/libevent-1.4.so.2
24264: trying file=/lib64/x86_64/libevent-1.4.so.2
24264: trying file=/lib64/libevent-1.4.so.2
24264: trying file=/usr/lib64/tls/x86_64/libevent-1.4.so.2
24264: trying file=/usr/lib64/tls/libevent-1.4.so.2
24264: trying file=/usr/lib64/x86_64/libevent-1.4.so.2
24264: trying file=/usr/lib64/libevent-1.4.so.2
24264:
/usr/local/bin/memcached:error while loading shared libraries:libevent-1.4.so.2:cannot open shared object File:no such File or directory
2.3. Soft connect or copy files to your directory
[Email protected] memcached-1.4.17]# ln-s/usr/local/lib/libevent-1.4.so.2/usr/lib64/libevent-1.4.so.2
Third, start
[Email protected] memcached-1.4.17]#/usr/local/bin/memcached-d-M 10-u root-p 11211-c 32-p/tmp/memcached.pid
Iv. Check whether the memcached is activated.
[Email protected] memcached-1.4.17]# Ps-ef|grep memcached | Grep-v grep
Root 24267 1 0 21:40? 00:00:00/usr/local/bin/memcached-d-M 10-u root-p 11211-c 32-p/tmp/memcached.pid
[Email protected] memcached-1.4.17]#
Five, kill memcached
[[email protected] memcached-1.4.17]# kill ' Cat/tmp/memcached.pid '
Memcache basic operations (including error issues)