Memcached: errorwhileloadingsharedlibraries: libevent-2.0.so.5: cannoto solution

Source: Internet
Author: User
Memcached: errorwhileloadingsharedlibraries: libevent-2.0.so.5: cannoto address memcached basic options-p Port listening tcp port-d run memcached-uusername run in daemon mode-m run in username run n... memcached: error while loading shared libraries: libevent-2.0.so.5: cannot o solves the memcached basic option-p Port listening tcp port-d run memcached-u username in daemon mode run-m "num" maximum memory usage, unit: MB, the default value is 64MB-c. Number of soft connections. the default value is 1024-v. warning and error messages are Output.-vv prints client requests and return information to check whether memcached is running properly # ps aux | grep memcached # telnet localhost 11211 .... stats... displays basic information about memcached if information such as "memcached: error while loading shared libraries: libevent-2.0.so.5: cannotopen shared object file: No such file or directory" appears at startup, it indicates that memcached cannot find the libevent location. Therefore, use whereis libevent to obtain the location, connect to the path searched by memcached, and first check the location of libevent # whereis libeventlibevent: /usr/local/lib/libevent. la/usr/local/lib/libevent. so/usr/local/lib/libevent. a then, look at the memcached from where to find it # LD_DEBUG = libs memcached-v 2> & 1>/dev/null | less can see: Yes/usr/lib/libevent-2.0.so.5, so, create a soft chain [root @ localhost tools] # ln-s/usr/local/lib/libevent-2.0.so.5/usr/lib/libevent-2.0.so.5 restart to close 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.