Memached startup Error

Source: Internet
Author: User

The following error is reported:

[Root @ stage memcached-1.4.15] #/usr/local/bin/memcached-d-m 512-c 512-p 12000-u root-l 211.157.137.245

/Usr/local/bin/memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory


Solution:

First, check where the libevent is located.

[Root @ stage memcached-1.4.15] # whereis libevent

Libevent:/usr/lib/libevent. a/usr/lib/libevent. so/usr/lib/libevent. la


Then, let's see where memcached looks for it.

[Root @ stage memcached-1.4.15] # LD_DEBUG = libs memcached-v 2> & 1>/dev/null | less

5493: find library = libhugetlbfs. so [0]; searching

5493: search cache =/etc/ld. so. cache

5493: trying file =/usr/lib64/libhugetlbfs. so

5493:

5493: find library = libevent-2.0.so.5 [0]; searching

5493: search cache =/etc/ld. so. cache

5493: 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)

5493: trying file =/lib64/tls/x86_64/libevent-2.0.so.5

5493: trying file =/lib64/tls/libevent-2.0.so.5

5493: trying file =/lib64/x86_64/libevent-2.0.so.5

5493: trying file =/lib64/libevent-2.0.so.5

5493: trying file =/usr/lib64/tls/x86_64/libevent-2.0.so.5

5493: trying file =/usr/lib64/tls/libevent-2.0.so.5

5493: trying file =/usr/lib64/x86_64/libevent-2.0.so.5

5493: trying file =/usr/lib64/libevent-2.0.so.5

5493:

Memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory


We can see that: yes/usr/lib64/libevent-2.0.so.5, so, create soft chain

[Root @ stage memcached-1.4.15] # ln-s/usr/lib/libevent-2.0.so.5/usr/lib64/libevent-2.0.so.5


Local startup:

/Usr/local/bin/memcached-d-m 512-c 512-p 12000-u root

Disable memcached: pkill memcached


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.