發表文章

目前顯示的是 6月, 2014的文章

RHEL 7 yum repository 安裝 Apache + PHP 網站服務

圖片
自從 RHEL 7 Release 之後,要測試及安裝軟體都變得很麻煩,剛剛就自己重製了一份 yum 的儲存庫來使用,至少在 CENTOS 7 正式版 出來前先這樣撐著用巴。 建立方式可以參考 之前的 RHEL5 的作法 ,到 7 版方式雷同。 請到你的 /etc/yum.repos.d/ 目錄下,建立一個 local.repo 檔案。 [root@localhost yum.repos.d]# pwd /etc/yum.repos.d  [root@localhost yum.repos.d]# nano local.repo [rhel7-server] name = rhel7 server DVD 64bit baseurl = http://mt.jangmt.com/rhel7/RHEL-7.0Server.x86_64/ enabled = 1 gpgcheck = 0  [rhel7-support] name = rhel7 support DVD 64bit baseurl = http://mt.jangmt.com/rhel7/Supp-7.0RHEL-7Server.x86_64/ enabled = 1 gpgcheck = 0 裝好後安裝個 apache + PHP 服務在 RHEL7 上面巴。 因為 CENTOS7 已經正式出現了,所以可以直接使用 CENTOS7 的 REPO 當作系統的軟體來源: 目前系統 CentOS 7 的主要 REPO 檔案如下: [root@mtchang yum.repos.d]# cat /etc/yum.repos.d/CentOS-Base.repo # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client.  You should use thi...