Mac installation Homebrew
Ruby-e "$ (Curl--insecure-fssl Https://raw.githubusercontent.com/Homebrew/install/master/install)"
Mac Uninstall Homebrew
Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Use the Phpinfo () function to view PHP information, such as Phpredis extensions, PHP configuration file path, PHP version, etc.
Use the sudo php-fpm-c/usr/local/etc/php/5.6/php.ini to start PHP with the specified php.ini
Use ps-ef|grep PHP to find the running PHP process, use kill [PID] to kill the running PHP process;
Use the Brew uninstall php55 Uninstall installation application
Installing applications using the Brew install PHP56
Use Brew search PHP to find this keyword-related application that exists on the brew server
After downloading the PHP extension, you need to use extension=redis.so in php.ini to add the target extension, which will go to the default path lookup, this default path is not very clear what location, you can extension=/usr/local/coller/ Phpredis/redis.so this uses an absolute path to specify the extension.
PHP if reported timezone error, add Date.timezone = PRC in php.ini, specify time zone for China
Use Brew to install the Php56-redis plug-in, and if you are using the brew search PHP to include Homebrew/php/php56-redis, execute brew tap homebrew/php first. Then install the Brew install Php56-redis.