您的位置:首页 > 数据库 > Memcache

How to install Memcached in CentOS 6

2014-01-09 21:49 393 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: