Recently, I switched the development environment from Windows to Mac, and all environments have to be reconfigured. Since Mac is based on a Unix system and I am not familiar with it, I encountered many problems. The editor will sort out and share them with you below.
Install the phpredis extension:
First, everyone downloads the phpredis extension package. This is the address https://nodeload.github.com/nicolasff/phpredis/zip/master (it is recommended that you download it manually and then copy it).
Secondly, everyone uses the command to enter the folder
cd phpredis-master/ phpize命令(命令可能会出问题,解决方法请见文章尾部) ./configure --with-php-config=/usr/bin/php-config make sudo make install (依次执行上面的命令) # 这时候会提示一个路径 # /usr/lib/php/extensions/no-debug-non-zts-20100525/ # 表示已经将扩展放置在该位置 vim /etc/php.ini #增加如下内容 extension=redis.so #重启apache sudo apachectl restart #查看扩展安装情况 php -m |grep redis #出现 redis 表示安装成功
The above is the complete introduction to installing the phpredis extension on Mac. I hope you like it.
For more related articles on how to install phpredis extension on Mac, please pay attention to PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Zend Studio 13.0.1
Powerful PHP integrated development environment
