centos 升级PHP

<p >查看PHP版本信息 rpm -qa |grep php<br /> </p> <p >先将以下地址导入。<span class="Apple-converted-space"></span><br /> # rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka<span class="Apple-converted-space"></span><br /> # vi /etc/yum.repos.d/CentOS-Base.repo 增加下面信息<span class="Apple-converted-space"></span><br /> [utterramblings]<span class="Apple-converted-space"></span><br /> name=Jason&#39;s Utter Ramblings Repo<span class="Apple-converted-space"></span><br /> baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/<span class="Apple-converted-space"></span><br /> enabled=1<span class="Apple-converted-space"></span><br /> gpgcheck=1<span class="Apple-converted-space"></span><br /> gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka</p> <p >执行命令,自动升级。<span class="Apple-converted-space"></span><br /> yum update php-common -y<span class="Apple-converted-space"></span><br /> </p>
RangeTime:0.007080s
RangeMem:204.52 KB
返回顶部 留言