<code><span>#yum install php55-php.x86_64 php55-php-cli.x86_64 php55-php-common.x86_64 php55-php-devel.x86_64 php55-php-gd.x86_64 php55-php-mbstring.x86_64 php55-php-pdo.x86_64 php55-php-xml.x86_64 php55-php-fpm.x86_64 php55-php-mysqlnd.x86_64</span>cp -r phpredis-develop /opt/rh/php55/root/usr/include/php/ext/ <span>#cd /opt/rh/php55/root/usr/include/php/ext/phpredis</span><span>#/opt/rh/php55/root/usr/bin/phpize </span><span>#./configure --with-php-c/rh/php55/root/usr/bin/php-config</span><span>#make</span><span>#make test</span><span>#make install</span><span>#cd /opt/rh/php55/root/etc</span><span>#vim php.ini</span><span># extension=redis.so</span></code>
The above introduces the YUM installation of PHP55 and phpredis extension, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.