閱讀424 返回首頁    go 小米 go 小米手環


Linux-VPS安裝和配置(補充)

前麵我們有將了 Linux-VPS的安裝配置教材

具體地址如下:

https://support.chinaccnet.com/archives/2113.html 安裝這個教程配置的VPS,所用的PHP版本是5.1.6的,這已經不能滿足很多程序的使用,下麵我們來處理下升級PHP的問題。

CentOS下默認不能通過yum -y update php命令進行升級PHP 需要更改PHP的源。

命令如下:

vi  /etc/yum.repos.d/CentOS-Testing.repo

編輯CentOS-Testing.repo 文件 在其他添加內容如下:

[utterramblings]
name=Jason’s Utter Ramblings Repo
baseurl=https://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

保存退出(!wq)

然後在通過yum -y update php
記性升級即可;

當然你也可以先編輯CentOS-Testing.repo 內容,然後在按照https://support.chinaccnet.com/archives/2113.html進行配置,這樣PHP的版本就是5.2的版本了。

可以參考:

https://www.zhztk.com/a/xitongjiagou/Linuxxitong/2011/0525/696.html

最後更新:2017-01-04 22:34:51

  上一篇:go 思科路由交換之acl
  下一篇:go 64位Windows 2008 service部署IIS7