linux -- Fedora安装TFTP服务器

1. 在线安装tftp服务器、客户端tftp和守护进程xinetd:
# yum install tftp tftp-server xinetd

2. 配置TFTP
# vi /etc/xinetd.d/tftp

修改server_args= -s <path> -c; //其中<path>为tftp-server的根目录,参数-s指定chroot,-c指定了可以创建文件.

3. 创建TFTP目录并设置权限
# mkdir /tftpboot
# chmod 777 /tftpboot

4. 重启xinetd
# /etc/init.d/xinetd restart

5. 关闭防火墙selinux
# vi /etc/sysconfig/selinux

修改SELINUX=disabled; //enforcing: 使用防火墙; disabled: 禁用防火墙.

6. 重启计算机

7. 测试TFTP服务器

# cd ~

# touch test.txt

# tftp 127.0.0.1
# put test.txt test_put.txt
# get test_put.txt test_get.txt

猜你喜欢

转载自blog.csdn.net/xsbh0310/article/details/51138094