CentOS 5.3 安装TFTP

系统 1309 0

CentOS 5.3 安装TFTP_一直被超越,从未被模仿_百度空间

CentOS 5.3 安装TFTP

1.当然是使用yum安装最直接,一共会安装3个东东
tftp.i386
tftp-server.i386
xinetd.i386
[root@localhost CentOS]# yum -y install tftp*

2.安装完后可以使用rpm命令查看
[root@localhost CentOS]#rpm -qa | grep tftp
tftp-server-0.49-2.el5.centos
tftp-0.49-2.el5.centos

3.正式使用之前需要修改一下配置
[root@localhost CentOS]# vi /etc/xinetd.d/tftp
# 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 '加-c
disable = yes '改为no #默认tftp服务是关闭的。
per_source = 11
cps = 100 2
flags = IPv4
}

修改后的代码:
# 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 -c
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
~
:wq (保存退出)

说明:修改项server_args= -s     <path>    -c,其中<path>处可以改为你的tftp-server的根目录,参数-s指定chroot,-c指定了可以创建文件。


4.启动tftp服务
[root@localhost CentOS]#cd /
[root@localhost /]# service xinetd start
Starting xinetd: [ OK ]
[root@localhost /]# setup '查看TFTP是否开机自动开启(系统服务选项) 查看防火墙是否开放TFTP端口,并在其他端口选项增加端口69:udp ,保存退出setup界面

5.修改tftp根目录权限
[root@localhost /]# ls
backups dev lib misc opt sbin sys usr
bin etc lost+found mnt proc selinux tftpboot var
boot home media net root srv tmp
[root@localhost /]# cd tftpboot/
[root@localhost tftpboot]# ls
[root@localhost tftpboot]# cd /
[root@localhost /]# chmod 777 tftpboot

6.重启tftp服务

[root@localhost /]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]

CentOS 5.3 安装TFTP


更多文章、技术交流、商务合作、联系博主

微信扫码或搜索:z360901061

微信扫一扫加我为好友

QQ号联系: 360901061

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描下面二维码支持博主2元、5元、10元、20元等您想捐的金额吧,狠狠点击下面给点支持吧,站长非常感激您!手机微信长按不能支付解决办法:请将微信支付二维码保存到相册,切换到微信,然后点击微信右上角扫一扫功能,选择支付二维码完成支付。

【本文对您有帮助就好】

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描上面二维码支持博主2元、5元、10元、自定义金额等您想捐的金额吧,站长会非常 感谢您的哦!!!

发表我的评论
最新评论 总共0条评论