In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the relevant knowledge of "memcached instance Analysis of installing memcached under linux". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Preparation in advance
Environment: centos6.5
Memcached version 1.4.25
Install libevent
Because the official website says that memcached depends on libevent.
Install using yum
Yum install libevent-devel
Source code installation
Download URL: http://libevent.org/
Decompression
Tar-zxvf libevent-2.0.22-stable.tar.gz
Configuration
. / configure-prefix=/usr/local/libevent
Installation
Make & & make install
Memcached installation
Decompression
Tar-xvf memcached-1.4.25.tar.gz
This version of memcached does not use gzip compression, so you cannot add-g
Compile
You can refer to the compilation parameters through. / configure-help, and you can see that we can specify the libevent installation directory with-with-libevent.
The compilation command is as follows:
. / configure-prefix=/usr/local/memcached-with-libevent=/usr/local/libevent/
Installation
Execute the following command
Make & & make install
After the installation is complete, you can see that there is an additional memcached directory under the / usr/local directory, which is structured as follows:
Start memcached
If you directly run bin/memcached-vvv as a shareholder, the error will be reported as follows
It works well under win, but why under linux? Because linux requires a lot of permissions. What should I do? We use-u to specify the user to run.
So you can use the following command to connect
Bin/memcached-vv-u nobody
It can be seen that it has been started normally.
Connect memcached under win
Connect through telnet under win, of course, if you need to turn off the firewall in advance in linux.
This is the end of the content of "memcached instance Analysis of installing memcached under linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.