第一步 准备好 所需要的软件包
libs.so.6.0.10 tftp-0.42-3.1.i386.rpm xinetd-2.3.14-8.i386.rpm
libstdc++.so.6.0.10 tftp-server-0.42-3.1.i386.rpm
oxiaom tftp-server-0.43-1.i386.rpm
这些在网上都可下载到 具体的说应该是在优快云 能够下载到
关于 安装中出现的错误
[root@bogon home]# rpm -ivh tftp-0.42-3.1.i386.rpm
warning: tftp-0.42-3.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing... ########################################### [100%]
1:tftp ########################################### [100%]
对于这个错误可以采取强制安装的办法 就是在写命令的时候这个样子
rpm -ivh tftp-0.42-3.1.i386.rpm --force --nodeps
我没有这么按照就是我反正安装成功了 能不能用还不知道呢
出现了错误才知道可以这么解决呵呵
==试一下
[root@bogon home]# tftp
(to)
usage: connect host-name [port]
tftp>
这不 可以用了 还没测试 ==会测试 这就去配置一下去
我上的是国嵌的培训班 我就按照发的手册里面的步骤慢慢来
不过呢 还是忽悠出现莫名的错误 就要网络来解决了 不过网络真是方便嘿嘿
[root@bogon home]#
[root@bogon home]# vi /etc/xinetd.d/tftp
这个就是配置文件了
//================刚刚发现一个很久没有解决的操作上的问题就是 在shell 命令中 无法结束的时候我通常是关掉命令窗口真悲剧吧 我都不好意思说了
但是无意中 用ctrl + C可以跳出来
或许只用ctrl 就能跳出来吧 不知道==在试验一下
//=====================================
default: off
# description: The tftp server serves files using the trivial file transfer /
# protocol. The tftp protocol is often used to boot diskless /
# workstations, download configuration files to network-aware printers, /
# and to start the installation process for some operating systems.
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
//
s/把vi后的东西改为这样 其实就是该一个 disable 改为no 就是启用的意思了
//对了 要先安装xinet.d 这个软件包才能安装 tftp server的 如果以已经安装了就不必了如果没有就会按照失败提示你安装了
//==================================================
下面就该启动xinet。d了
[root@bogon home]# /etc/init.d/xinetd start
启动 xinetd: [确定]
[root@bogon home]#
启动了 哈哈
查看是否 启动成功了 命令就是这么写的我也不知道什么意思呢 好像是有管道的东西吧 在前面的课例听过 或许就有这么个用处
[root@bogon home]# netstat -a | grep tftp
udp 0 0 *:tftp *:*
[root@bogon home]#
下一篇 安装nfs服务 期待吧