How to install Memcached in CentOS 6

时间:2014-01-14 19:46:59   收藏:0   阅读:439

Install the following packages:

 

Type the following yum command to install.

yum install memcached python-memcached

 

How do I configure Memcached server?

# vi /etc/sysconfig/memcached

 

How do I start/stop/restart Memcached server?

# /sbin/service memcached start
# /sbin/service memcached stop
# /sbin/service memcached restart
# /sbin/service memcached status

 

How do I verify that Memcached is running and working correctly on Linux?

Type the following command to see if it is running or not:

# pgrep memcached
# netstat -tulpn | grep :11211

 

Use the memcached-tool to get general stats about the server:

# memcached-tool 127.0.0.1:11211 stats

原文:http://www.cnblogs.com/ouxingning/p/memcached_installation.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!