"Memcached" Linux CentOS installation Memcached and its common basic operations

Source: Internet
Author: User
Tags memcached

CentOS installation memcached

1. See if there is a version of memcached.

[[email protected] bin]# yum list memcachedloaded plugins:securitybase |                                                                                                                                                                               3.7 KB 00:00 Epel |                                                                                                                                                                    4.4 KB 00:00 epel/primary_db |                                                                                                                                                                             6.7 MB 00:01 Extras |                                                                                                                 3.4 KB 00:00 Updates                                                           |                                                                                                                                                                 3.4 KB 00:00 updates/primary_db |     4.4 MB 00:01 Installed packagesmemcached.x86_64

You can install it with a version.

2. Installation

Yum Install memcached.x86_64

3. Start and view status

[Email protected] bin]# service memcached startstarting memcached:                                        [  OK  ][[email protected] bin]# netstat- ANTP | grep memcachedtcp        0      0 0.0.0.0:11211               0.0.0.0:*                   LISTEN      8544/memcached      


[[email protected] bin]# memcached-tool 127.0.0.1:11211 stats#127.0.0.1:11211 Field Value accepting_c Onns 1 Auth_cmds 0 auth_errors 0 Bytes 7                Bytes_read 1945 Bytes_written 144 Cas_badval 0           Cas_hits 0 cas_misses 0 Cmd_flush 0 cmd_get        0 Cmd_set 6 Conn_yields 0 connection_structures 7 Curr_connections 6 Curr_items 2 Decr_hits 0 decr_           Misses 0 delete_hits 0 delete_misses 0 Evictions             0 get_hits 0 get_misses 0 incr_hits 0          Incr_misses 0 limit_maxbytes 67108864 listen_disabled_num 0 PID 8544           Pointer_size rusage_system 0.001999 rusage_user 0.002999 Threads                  4 time 1437824548 total_connections 7 Total_items 6  Uptime 139 version 1.4.4[[email protected] bin]#



The default is Port 11211. can modify port information


4, modify the parameters such as port


Vim/etc/sysconfig/memcached


Which works, or is valid ...

port=11211   //Port user=memcached  //user name used maxconn=1024    //simultaneous maximum connections cachesize=64    //Memory size used options= ""  //Additional parameters

Modify save reboot. Service memcached Restart


5. Set Boot start

Chkconfig--level 2345 memcached on


What else is there? I want to add ...

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

"Memcached" Linux CentOS installation Memcached and its common basic operations

Related Article

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.