In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to install centralized cache system Memcached under Linux", which is easy to understand and clear. I hope it can help you solve your doubts. Let me lead you to study and learn this article "how to install centralized cache system Memcached under Linux".
Memcached is a high-performance, distributed in-memory object caching system, which is universal in nature, but its purpose is to speed up dynamic network applications by reducing database load.
1. Create a folder
Mkdir mem
2.apt-get install libevent-dev Redhat / Centos:yum install libevent-devel
Yum install libevent libevent-devel
3.memcached download
Download will be very slow to pay for a network disk link (link: network disk link extraction code: 2fp7)
Http://memcached.org/downloads inserts the picture description here
4. Download and decompress
Wget http://memcached.org/latesttar-zxvf memcached-1.xxtar.gz
Or click directly to download and transfer to linux
Http://memcached.org/files/memcached-1.5.20.tar.gz inserts the picture description here
5. Compile
. / configure & & make & & make test & & sudo make install
6. Those who use memcached start
Memcached-u root
Or
Memcached-m 64-p 11211-u root-vv
The-d option is to start a daemon.
-m is the amount of memory allocated to Memcache for use, in MB.
-u is the user running Memcache.
-l is the IP address of the server listening. If there is more than one address, specify the IP listening address of the server below.
-p is the port on which Memcache snooping is set. I have set 11211 here, preferably more than 1024 ports. We all use 11211 here.
The-c option is the maximum number of concurrent connections running, and the default is 1024.
-P is the pid file that is set to save Memcache.
7. View the progress of memcached
Ps-ef | grep memcached
8. The computer starts the telnet service
Control full version > programs > programs and functions > > enable or disable windows functionality. > check telent client > OK to save.
9. View ip addr
Linux
Ip addr or config
10.windows+R link test
Telnet ip address 11211
Linux enables telnet
1. Check whether the rpm package of telnet-server is installed.
Rpm-qa telnet-server
If nothing is shown, it means that it is not installed. 2. If not installed, install telnet-server
Rpm-qa telnet-server
3. Check whether telnet's rpm package is installed 4. 0. Install telnet
Yum install telnet
5.telnet is hung under xinetd, so also check to see if the xinetd service is installed
Rpm-qa | grep xinetd
6. Installation
Yum install xinetd telnet telnet-server-y
7. Start:
Systemctl start telnet.socket
Configure telnet to set boot up
Chkconfig telnet on
Modify the configuration file
Vi / etc/xinetd.d/telnet changes "disable= yes" to "disable=no"
That is, no does not need to be changed.
These are all the contents of the article "how to install centralized caching system Memcached under Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.