Memcached

1. yum安装

# yum install memcached.x86_64 php-pecl-memcache.x86_64

或者

# yum install memcached php-pecl-memcache

2. 配置

vim /etc/sysconfig/memcached
PORT="11211"
USER="memcached"
MAXCONN="4096"
CACHESIZE="512"
OPTIONS=

3. start/stop/restart/status memcached service

# /etc/init.d/memcached start
# /etc/init.d/memcached stop
# /etc/init.d/memcached restart
# /etc/init.d/memcached status

4. verify memcached is running

# pgrep memcached
# netstat -tulpn | grep :11211
    原文作者:DeepLn
    原文地址: https://www.jianshu.com/p/fcd2c75e2002
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞