CentOS-TFTP服务器搭建
安装TFTP服务
1 | yum install tftp-server |
配置tftp
文件
vim /etc/xinetd.d/tftp
1 | # default: off |
设置TFTP目录的访问权限
1 | chmod 777 /var/lib/tftpboot |
开启TFTP服务
1 | [root@localhost /]# /etc/init.d/xinetd start |
可能出现的问题
1.tftpd服务没有启动
2.需要把selinux禁用掉 具体方法如下:
vim /etc/selinux/config
1 | # This file controls the state of SELinux on the system. |
把上面的SELINUX=enforcing 改为:SELINUX=disable 禁用SeLinux
然后reboot重启PC
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 偏有宸机!
评论