通过本地光盘提供的rpm包安装apache软件包httpd。

通过本地光盘提供的rpm包安装apache软件包httpd。

(1)虚拟机设置中对cd/dvd设备选择镜像文件的位置。

通过本地光盘提供的rpm包安装apache软件包httpd。

(2)挂载虚拟光驱到linux目录结构中,挂载位置可设置为/mnt/cdrom

命令:[[email protected] Packages]# mount /dev/sr0 /mnt/cdrom

通过本地光盘提供的rpm包安装apache软件包httpd。

(3)将路径切换至/mnt/cdrom/Packages

命令:[[email protected] cdrom]# cd /mnt/cdrom/Packages/

通过本地光盘提供的rpm包安装apache软件包httpd。

(4)用rpm命令安装(注用httpd的包全名)

命令:[[email protected] cdrom]# rpm ivh /mnt/cdrom/…安装命令
提示依赖两个包
安装httpd-tools

通过本地光盘提供的rpm包安装apache软件包httpd。
/etc/mine.types这个包在mailcap-2.1这个包里,安装这个包,最后安装apache
通过本地光盘提供的rpm包安装apache软件包httpd。

安装成功

(5)用rpm命令查看是否安装了httpd包

命令:rpm -q 包名
通过本地光盘提供的rpm包安装apache软件包httpd。

(6)卸载httpd包及相关的依赖包

通过本地光盘提供的rpm包安装apache软件包httpd。