In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Memcached distributed memory object caching system
Caching in memory; caching the fetched objects or data in memory; the data cached in memory are accessed through API
The data is like a HASH table, which exists in the form of key-value pairs.
It is used to reduce the pressure on the database, improve the response speed of the website, and build fast and scalable web applications.
Built-in memory management; use LUR to automatically delete unused storage and reuse memory space for expired data.
So the cached data will be lost after restarting the machine.
Download depends on libevent
It can also be installed by yum
# yum install libevent
Source code
# https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
# tar-xf libevent-2.0.22-stable.tar.gz
# cd libevent-2.0.22-stable
#. / configure
# make & & make install
Download and install memcached
# wget https://memcached.org/latest
[you might need to rename the file] the default is the latest version
# tar-zxf memcached-1.x.x.tar.gz
# cd memcached-1.x.x
#. / configure-prefix=/usr/local/memcached
# make & & make test & & sudo make install
Failed to start?
[root@Ansible memcached-1.4.30] # / usr/local/bin/memcached
/ usr/local/bin/memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory
[root@Ansible memcached-1.4.30] # find /-name libevent-2.0.so.5
/ opt/memcached/libevent-2.0.22-stable/.libs/libevent-2.0.so.5
/ usr/local/lib/libevent-2.0.so.5
Edit / etc/ld.so.conf add above
[root@Ansible memcached-1.4.30] # vi / etc/ld.so.conf
[root@Ansible memcached-1.4.30] # ldconfig
Startup: specify root or switch non-root
[root@Ansible memcached-1.4.30] # / usr/local/bin/memcached-m 32m-p 11211-d-u root
# yum install telnet
[root@Ansible memcached-1.4.30] # telnet 127.0.0.1 11211
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is'^]'.
View status:
Stats
Management tools
Memcached-tool
Yum install memcached-tool
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.