更新时间:2023-02-23 15:15:43
pecl bundle memcached
phpize
brew install libmemcached zlib
)brew list zlib
)./configure --with-zlib-dir=/usr/local/Cellar/zlib/1.2.11/
(用上一个命令中的zlib路径替换zlib路径)make
make install
/usr/local/etc/php/7.4/conf.d
目录中名为ext-memcached.ini的文件中pecl bundle memcached
phpize
brew install libmemcached zlib
)brew list zlib
)./configure --with-zlib-dir=/usr/local/Cellar/zlib/1.2.11/
(replace the zlib path with the one from the previous command)make
make install
/usr/local/etc/php/7.4/conf.d
directory in a file called ext-memcached.ini [memcached]
extension=memcached.so
[memcached]
extension=memcached.so
php -m
应该在输出列表中显示memcached php -m
should show you memcached in the outputted list