ubuntu安装和配置php memcached扩展

安装memcache

sudo apt-get install memcached

安装php-memcache模块

sudo apt-get install php5-memcached

编辑配置文件

sudo vim /etc/php5/fpm/php.ini 
**此处的 /etc/php5/fpm/php.ini 按实际情况填写**

extension=memcache.sod
[memcache]
memcache.dbpath=”/var/lib/memcache”
memcache.maxreclevel=0
memcache.maxfiles=0
memcache.archivememlim=0
memcache.maxfilesize=0
memcache.maxratio=0

重启

sudo service php5-fpm restart

完成

猜你喜欢

转载自blog.csdn.net/qq_37186127/article/details/78954344