[英]memcache won't appear php with osx homebrew
I have php project I want to develop in osx and I have used memcache 我有要在osx中开发的php项目,并且使用了memcache
I have implemented in linux but when I try to migrate to osx i can't find memcache 我已经在linux中实现,但是当我尝试迁移到osx时找不到内存缓存
I have tried to install it with brew or pecl doesn't work 我试图用brew或pecl安装它不起作用
I have tried xampp as well and doesn't work 我也尝试过xampp并且不起作用
Sure I have done
当然可以
sudo apachectl restart
added memcache.co to php.ini
将memcache.co添加到php.ini
I use php 5.6 and php 7.0 and just note I use memcache not memcached 我使用php 5.6和php 7.0,请注意我使用的是memcache而不是memcached
It should be installed with PECL: 它应该与PECL一起安装:
pecl install memcache
locate the php.ini file: 找到php.ini文件:
php --ini
then edit the php.ini file and add the complete path to memcache.so (as shown at the end of the installation output) 然后编辑php.ini文件,并将完整路径添加到memcache.so(如安装输出末尾所示)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.