: This article describes how to configure the phpredis extension in Mac. For more information about PHP tutorials, see. Recently, I switched the development environment from windows to Mac, and all the environments should be reconfigured. Mac is not familiar with unix systems, so many problems have been encountered.
Install phpredis extension:
First, you first download the phpredis extension package, this is the address https://nodeload.github.com/nicolasff/phpredis/zip/master (we recommend that you manually download and then copy ).
Next, you can use the command to enter the folder.
1 cd phpredis-master/2phpize command (the command may fail) 3. /configure -- with-php-c/bin/php-config 4 make 5 sudomakeinstall (execute the above commands in sequence) 6 # at this time will prompt a path 7 #/usr/lib/php/extensions/no-debug-non-zts-20100525/8 # indicates that the extension has been placed in this location 9 vim/etc/php. ini10 # add the following content 11 extension = redis. so12 # restart apache13sudo apachectl restart14 # view the extension installation status 15 php-m | grep redis16 # redis indicates that the installation is successful
Note that an error may occur when executing the phpize command. For more information, see:
Reference: http://my.oschina.net/Twitter/blog/287544
The above describes how to configure the phpredis extension in Mac, including some content. if you are interested in the PHP Tutorial.