centos redis yum安装 php-redis扩展安装

<p>centos redis yum安装 php-redis扩展安装</p><p>1,yum install redis</p><p>第一、redis安装错误提示</p><pre class="brush:bash;toolbar:false">[root@default~]#yum-yinstallredis Loadedplugins:fastestmirror Loadingmirrorspeedsfromcachedhostfile *base:centos.sonn.com *extras:mirror.supremebytes.com *updates:mirrors.cat.pdx.edu SettingupInstallProcess Nopackageredisavailable. Error:Nothingtodo</pre><p>第二、下载EPEL对应的版本和安装</p><p>版本寻找地址:http://fedoraproject.org/wiki/EPEL</p><pre class="brush:bash;toolbar:false">RHEL/CentOS6: #yuminstallhttps://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm RHEL/CentOS7: #yuminstallhttps://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm onRHEL7itisrecommendedtoalsoenabletheoptionalandextrasrepositoriessinceEPELpackagesmaydependonpackagesfromtheserepositories: #subscription-managerrepos--enable&quot;rhel-*-optional-rpms&quot;--enable&quot;rhel-*-extras-rpms&quot;</pre><p> </p><p>2, yum install php-pecl-redis</p><p>## RHEL / CentOS</p><p>Installation of the [php-pecl-redis](https://apps.fedoraproject.org/packages/php-pecl-redis) package, from the [EPEL repository](https://fedoraproject.org/wiki/EPEL):</p><p>~~~</p><pre class="brush:bash;toolbar:false">yuminstallphp-pecl-redis</pre><p>3,phpinfo()</p><pre class="brush:php;toolbar:false">RedisVersion2.2.8</pre>
RangeTime:0.006597s
RangeMem:205.11 KB
返回顶部 留言