NOSQL series-memcached Installation Management and repcached High Availability

Source: Internet
Author: User
Memcached: A stored database based on the memory work key value. It can be used as the application-memcached cache layer-database. DangaInteractive was initially developed to accelerate LiveJournal access. Later

Memcached: A stored database based on the memory work key value. It can be used as the application-memcached cache layer-database. DangaInteractive was initially developed to accelerate LiveJournal access. Later

Memcached: A stored database based on the memory work key value. It is rented by a Hong Kong server and can be used as an application-> memcached cache layer-> database. Danga Interactive was initially developed to accelerate LiveJournal access and later became an open-source project widely used.

I. experiment environment

1. system type

[Leo @ h4 etc] $ cat issue

CentOS Linux release 6.0 (Final)

Kernel \ r on an \ m

2. Number of system digits

[Leo @ h4 desktop] $ getconf LONG _

32

Linux ISO: CentOS-6.0-i386-bin-DVD.iso 32-bit

JDK version: "1.6.0 _ 25-ea"

Virtual Machine: Product VMware®Workstation Version 7.0.0 build-203739

3. CentOS needs to be connected to the network. This is relatively simple. You only need to set the menu> system> preference> network connection.

Open Network Connection

Click "edit". This is to set the system eth0 Nic.

Select IPv4 settings-> method: Automatic (DHCP) [allow the system to dynamically allocate ip addresses]-> application, because I am using a router in the company, it is more convenient to Select Automatic IP Address Allocation

If it is not edited by the root user, you will be asked to enter the root user password and then click "authorize ".

[Root @ h4 ~] # Service network restart the network service

[Root @ h4 ~] # Ifconfig this time we see that the IP address has been automatically assigned

Eth0 Link encap: Ethernet HWaddr 00: 0C: 29: 8B: 7D: 18

Inet addr: 192.168.2.107 Bcast: 192.168.2.255 Mask: 255.255.255.0

Inet6 addr: fe80: 20c: 29ff: fe8b: 7d18/64 Scope: Link

Up broadcast running multicast mtu: 1500 Metric: 1

RX packets: 8847 errors: 0 dropped: 0 overruns: 0 frame: 0

TX packets: 2355 errors: 0 dropped: 0 overruns: 0 carrier: 0

Collisions: 0 FIG: 1000

RX bytes: 6067491 (5.7 MiB) TX bytes: 231934 (226.4 KiB)

Interrupt: 19 Base address: 0x2024

Lo Link encap: Local Loopback

Inet addr: 127.0.0.1 Mask: 255.0.0.0

Inet6 addr: 1/128 Scope: Host

Up loopback running mtu: 16436 Metric: 1

RX packets: 10 errors: 0 dropped: 0 overruns: 0 frame: 0

TX packets: 10 errors: 0 dropped: 0 overruns: 0 carrier: 0

Collisions: 0 txqueuelen: 0

RX bytes: 704 (704.0 B) TX bytes: 704 (704.0 B)

4. The most important thing is to set the VMware network "Bridged" Bridge Mode to connect to the physical network.
VMware menu-> VM-> Settings-> select network Adapter

5. test the effect.

The Firefox browser shows the search results of the legend of the Chu and Han Dynasties. We are on the Internet.

Everyone must stick to it at this time. Don't watch TV series directly.

By the way, we recommend the 360 search engine. Have you ever used the 360 search engine? The effect is better than that of baidu :)

Next let's turn into the subject

Ii. Install and manage memcached

1. Install the memcached package

I have seen many people on the internet that yum cannot be installed by default.

Yum install memcached

Loaded plugins: rhnplugin, security

This system is not registered with RHN.

RHN support will be disabled.

Setting up Install Process

No package memcached available.

Nothing to do

The reason is: the yum package is not installed when the operating system is installed, so there is no. You can only download one yum package and install it manually.

Solution: refer to "yum error perfect solution" of Wu Yi"

Linux ISO: CentOS-6.0-i386-bin-DVD.iso 32 if you install this version and select the yum component when selecting the component, you can now directly install memcached yum, fortunately, when I first installed it, I had to kill 100 by mistake and never let it go. I installed it all. Now I can use it directly! Tian Ling yumyum Express

[Root @ h4 ~] # Yum install memcached

Loaded plugins: fastestmirror, refresh-packagekit

Loading mirror speeds from cached hostfile

* Base: mirrors.btte.net

* Extras: mirrors.btte.net

* Updates: mirrors.btte.net

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package memcached. i686. 4.4-3. el6 set to be updated

--> Finished Dependency Resolution

Dependencies Resolved automatically selected version 1.4.4-3. el6, virtual host, Max version 1.4.15

========================================================== ==========================================================

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.