1、掛載本地Rethat6.5系統鏡像文件php
在將Rethat6.5系統iso文件上傳至/Rethat_iso下緩存
#mkdir /Rethat_isoide
#mkdir /Rethat_iso/isooop
掛在本地iso文件(將rethat6.5鏡像系統上傳至/Rethat_iso/iso下)url
#mount -o loop -t iso9660 /Rethat_iso/Rethat_iso/iso /Rethat_iso/isospa
ls #查看掛載目錄,光盤掛載成功orm
2、配置本地yum源blog
#cd/etc/yum.repos.d/ #進入yum配置目錄get
#mvrhel-source.repo rhel-source.repo.bak文件上傳
#touch rhel.repo #創建yum配置文件
#vi rhel.repo #編輯配置文件,添加如下內容
[rhel]
#自定義名稱
name=Red Hat Enterprise Linux 6.5
#本地光盤掛載路徑
baseurl=file:///Rethat_iso/iso
#啓用yum源,0爲不啓用,1爲啓用
enabled=1
#檢查GPG-KEY,0爲不檢查,1爲檢查
gpgcheck=1
#GPG-KEY路徑
gpgkey=file:///Rethat_iso/iso/RPM-GPG-KEY-redhat-release
3、清除yum緩存,使用yum install自動安裝軟件
yum cleanall #清除yum緩存
yum installphp #安裝php