Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从 Windows 迁移到 MAC OS,安装并配置了本地 XAMPP-VM Web 服务器,但注意到它没有(未启用)Redis。请告诉我如何将 Redis 添加到虚拟机?
如果幸运的话,您使用的是 PHP 7.3,这将对您有所帮助,因为它是 Debian 当前支持的版本。打开终端并运行:
$ apt install php-dev automake $ pecl install redis
否则你必须下载 pecl 包,头文件的 php 源代码并手动编译。如果您需要在 VM 中安装 redis(apt install redis)。