root@localhost home]# netstat -a | grep tftp
udp 0 0 *:tftp *:*
[root@localhost home]# vi test
[root@localhost home]# cd /tftpboot
[root@localhost tftpboot]# ls
test
[root@localhost tftpboot]# tftp 127.0.0.1
bash: tftp: command not found
当使用tftp时出现bash: tftp: command not found
说明
你安装的是tftp server包 ,但是没有安装tftp命令包,把tftp-0.42-3.1.i386.rpm安装上就可以了,这个包可以在RHEL5的Server目录中找到,通过samba或者mount服务拷贝到虚拟机中,安装就可以了
tftp: command not found
在配置TFTP服务时,按照教程的步骤都一一配置好,并且
]# netstat -a|grep tftp
udp
0
0 *:tftp
*:*
udp
这说明,服务器已经启动,但是当运行tftp时,却出现了:
# tftp 192.168.109.33
-bash: tftp: command not found
-bash: tftp: command not found
使用which命令查看了下tftp命令:
# which tftp
/usr/bin/which: no tftp in (/opt/nxp/gcc-4.3.2-glibc-2.7/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/arm/4.3.2/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin:/opt/nxp/gcc-4.3.2-glibc-2.7/bin
/usr/bin/which: no tftp in (/opt/nxp/gcc-4.3.2-glibc-2.7/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/arm/4.3.2/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin:/opt/nxp/gcc-4.3.2-glibc-2.7/bin
这说明在这些路径下没有tftp命令。
那是不是安装出现了问题呢,于是找到了tftp的两个安装包:
tftp-0.42-3.1.i386.rpm
tftp-server-0.42-3.1.i386.rpm
重新安装之后,运行一下,发现可以正常运行了!