Memcache basic operations (including error issues)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.