挂载RHEL 5.1安装光盘,在虚拟机中选择设置就可以了。如图所示

RHEL 5.1 下面安装tftp服务

设置挂载

[[email protected] Server]# cd /mnt
[[email protected] mnt]# mkdir cdrom

[[email protected] mnt]# mount /dev/cdrom /mnt/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only

找到安装文件

[[email protected] mnt]# cd cdrom/Server/
[[email protected] Server]# ls tftp*
tftp-0.42-3.1.i386.rpm  tftp-server-0.42-3.1.i386.rpm

执行安装命令

[[email protected] Server]# rpm -ivh tftp-server-0.42-3.1.i386.rpm 
warning: tftp-server-0.42-3.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
        xinetd is needed by tftp-server-0.42-3.1.i386

安装失败,显示缺少一个依赖的文件没装,那就先装它好了。

[[email protected] Server]# ls xinetd*
xinetd-2.3.14-10.el5.i386.rpm
[[email protected] Server]# rpm -ivh xinetd-2.3.14-10.el5.i386.rpm 
warning: xinetd-2.3.14-10.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:xinetd                 ########################################### [100%]

 

安装成功,在装tftp试试。

[[email protected] Server]# rpm -ivh tftp-server-0.42-3.1.i386.rpm 
warning: tftp-server-0.42-3.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:tftp-server            ########################################### [100%]

安装成功。

[[email protected] Server]# cd /
[[email protected] /]# ls
bin   dev  home  lost+found  misc  net  proc  sbin     srv  tftpboot  usr
boot  etc  lib   media       mnt   opt  root  selinux  sys  tmp       var

根目录下面已经创建了tftpboot目录。

下面看一下配置文件。

[[email protected] /]# vi /etc/xinetd.d/tftp

打开后默认如图所示,如果对应的改一下。disable 改为no就可以了。

RHEL 5.1 下面安装tftp服务

启动服务。没有启动起来的要在重新启动一下。

  [[email protected] /]# service xinetd start
启动 xinetd:
[[email protected] /]# netstat -a | grep tftp
[[email protected] /]# service xinetd restart
停止 xinetd:                                              [确定]
启动 xinetd:                                              [确定]

查看服务
[[email protected] /]# netstat -a | grep tftp
udp        0      0 *:tftp                      *:*                                     
服务已经启动。


本文转自emouse博客园博客,原文链接:http://www.cnblogs.com/emouse/archive/2012/03/24/2415667.html,如需转载请自行联系原作者

相关文章:

  • 2022-12-23
  • 2021-05-06
  • 2021-10-04
  • 2021-11-12
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
猜你喜欢
  • 2021-12-05
  • 2021-07-12
  • 2021-10-14
  • 2021-10-13
  • 2021-11-22
  • 2022-12-23
相关资源
相似解决方案