Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation of memcached_ Power Node under linux Java College arrangement

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Preparation in advance

Environment: centOS6.5memcached version 1.4.25

Memcached download URL:

Http://memcached.org/downloads

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.

Summary

The above is the whole content of this article, I hope that the content of this article can bring some help to your study or work, if you have any questions, you can leave a message and exchange, thank you for your support.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report