In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This paper gives an example of how to install memcache and start it in ubuntu environment. Share with you for your reference, the details are as follows:
It is relatively easy to install the memcache server on ubuntu.
Sudo apt-get install memcachedmemcached-d-M128-p 22222-u root-c 1024-l 127.0.0.1-P / tmp/memcached.pid-s / tmp/memcached.sock
Parameter explanation:
-d set to daemon
-m set memory size (M)
-p set listening port
-u set up the startup user
-l is the IP address of the server that is listening
The-c option is the maximum number of concurrent connections running. The default is 1024, which is set according to the load of your server.
-P is the pid file that is set to save Memcache
-s set socket
After starting the above command, check the memcache process
Ps-ef | grep memcache# will display the following, and then there will be memcache pid and sock files duck 3735 under / tmp 11:33? 00:00:00 memcached-d-M128-p 22222-u root-c 1024-l 127.0.0.1-P / tmp/memcached.pid-s / tmp/memcached.sock
Test the link
#! / usr/bin/env pythonimport memcachemem_cli = memcache.Client (['127.0.0.1 debug=0) mem_cli.set ("test", "what is happend?") value = pymem.get ("test") print value
I hope what is described in this article will be helpful to the server configuration of your ubuntu environment.
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.