首页 > 其他 > 详细

How to install Memcached in CentOS 6

时间:2014-01-14 19:46:59      阅读:438      评论:0      收藏:0      [点我收藏+]

Install the following packages:

  • memcached High Performance, Distributed Memory Object Cache server package.
  • python-memcached Python client to work with memcached server.

 

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

How to install Memcached in CentOS 6

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!