In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Chapter 1
Summary of MEMCACHE installation and introduction in the first section
Install MEMCACHE
Download wget http://www.danga.com/memcached/dist/memcached-1.2.0.tar.gz
Decompress and enter tar-zxvf memcached-1.2.0.tar.gz & & cd memcached
Determine whether to install the libevent C network model framework before installing MEMCACHE. MEMCACHE network events are also based on LIBEVENT. This is very important. It will be analyzed separately later.
Install Memcache. / configure-- with-libevent=/usr
Make & & make install
Launch Memcache / usr/local/memcached/bin/memcached-d-m 64-u root-l 127.0.0.1-p 12000-c 1024-P / usr/local/memcached/memcached.pid
Parameters related to Memcache startup can be found in the int main (void) {} method of the memcached.c file.
Parameter description: (only a part of it is listed. If you want to complete it, you can check it in the official website manual.)
The 1-d option is to start a daemon
2-m is the amount of memory allocated to Memcache in MB, and this is 10MB.
3-u is the user running Memcache. This is root.
4-l is the IP address of the listening server. If there are multiple addresses, I specify the IP address of the server 127.0.0.1.
5-p is the port on which Memcache snooping is set. I have set 12000 here, preferably a port above 1024.
The 6-c option is the maximum number of concurrent connections running. The default is 1024. I set it here according to the load of your server.
7-P is the pid file that is set to save Memcache. Here I save it in / tmp/memcached.pid
Test telnet 127.0.0.1 12000
The parameters of Memcache for telnet connection are compared with those when memcache was started (IP and port).
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.