linux – 如何在CentOS 6.2上创建工作的TFTP服务器
发布时间:2020-12-13 16:33:20 所属栏目:Linux 来源:网络整理
导读:我正在尝试在CentOS 6.2上设置TFTP服务器. /etc/xinet.d/tftp配置文件如下: service tftp{ disable = no socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /tftpboot -vvv per_source = 11 cps =
我正在尝试在CentOS 6.2上设置TFTP服务器.
/etc/xinet.d/tftp配置文件如下: service tftp { disable = no socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /tftpboot -vvv per_source = 11 cps = 100 2 flags = IPv4 } selinux和防火墙被禁用. Jul 11 03:16:53 localhost xinetd[4155]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in. Jul 11 03:16:53 localhost xinetd[4155]: Started working: 1 available service Jul 11 03:17:00 localhost xinetd[4155]: START: tftp pid=4157 from=192.168.10.3 Jul 11 03:17:00 localhost in.tftpd[4158]: RRQ from 192.168.10.3 filename 1 Jul 11 03:17:00 localhost in.tftpd[4158]: sending NAK (0,Permission denied) to 192.168.10.3 Jul 11 03:17:01 localhost in.tftpd[4159]: RRQ from 192.168.10.3 filename 1 Jul 11 03:17:01 localhost in.tftpd[4159]: sending NAK (0,Permission denied) to 192.168.10.3 Jul 11 03:17:03 localhost in.tftpd[4160]: RRQ from 192.168.10.3 filename 1 tftpboot目录权限是(ls -l命令的输出): drw-rw-rw-. 3 root root 4096 Jul 11 03:32 tftpboot 我还看到tftpboot目录显示(由ls -l)绿色背景(与其他文件/目录不同)(为什么?我知道绿色背景仅用于粘贴位). 我做错了什么?如何使TFTP服务器正常工作? 解决方法
您的/etc/xinet.d/tftp配置文件是否正确.
/ tftpboot的权限应为755或drwxr-xr-x. 确保chkconfig –list显示在xinetd下启用了tftp. xinetd based services: chargen-dgram: off chargen-stream: off daytime-dgram: off . . rsync: on tcpmux-server: off tftp: on (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |