1. 程式人生 > >CentOS6.9yum安裝memcached和php-memcached擴展

CentOS6.9yum安裝memcached和php-memcached擴展

.cn 沒有 clas ont user root etc -h load

首先確認倉庫中是否存在memcached和libmemcached以及php-pecl-memcached,如果沒有需要設置yum源
1.安裝memcached

yum install memcached

2.驗證安裝

memcached -h
/etc/rc.d/init.d/memcached status

3.查看配置文件

[root@jmsite ~]# cat /etc/sysconfig/memcached
PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="64"
OPTIONS=""

4.啟動memcached

/etc/rc.d/init.d/memcached start
#設置開機啟動
chkconfig memcached on

5.安裝libmemcached

yum install libmemcached

6.安裝php-pecl-memcached擴展

yum install php-pecl-memcached

7.重啟php,查看phpinfo();
技術分享圖片
原文地址:https://www.jmsite.cn/blog-133.html

CentOS6.9yum安裝memcached和php-memcached擴展