Configure phpredis extension and macphpredis extension in Mac. Configure the phpredis extension in Mac. macphpredis extension recently transfers the development environment from windows to Mac, and all environments must be reconfigured. Mac is not familiar with unix systems, so the phpredis extension and macphpredis extension are configured in Mac.
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, download the phpredis extension package at the following address:
Https://nodeload.github.com/nicolasff/phpredis/zip/master (we recommend that you manually download and then copy ).
Then you can run the command to enter the folder.
1 cd phpredis-master/2 phpize command (the command may have problems. for the solution, see the end of the article) 3. /configure -- with-php-config =/usr/bin/php-config 4 make 5 sudo make install (execute the preceding command 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 apache13 sudo apachectl restart14 # view the extension installation status 15 php-m | grep redis16 # redis indicates that the installation is successful
Note that executing the phpize command may cause errors. see: http://www.cnblogs.com/tianshuowang/p/4686156.html
Reference: http://my.oschina.net/Twitter/blog/287544
Ghost recently switched the development environment from windows to Mac, and all the environments should be reconfigured. Mac is not familiar with unix systems, so...