1. 安装
sudo apt-get install tftpd tftp xinetd
2. 配置
sudo vi /etc/xinetd.d/tftp
输入内容:
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = /opt/tftpboot
disable = no
}
3. 创建服务文件目录,要上传下载的文件都放在这个目录
与上面的server_args对应
sudo mkdir /opt/tftpboot
4. 改变权限
sudo chmod -R 777 /opt/tftpboot
sudo chown -R nobody /opt/tftpboot
5. 启动
sudo /etc/init.d/xinetd start
6. 传输(注意放在目录下的文件都必须是777权限的)
tftp xxx.xxx.xxx.xx
tftp>get xxxx
tftp>put xxxx
sudo apt-get install tftpd tftp xinetd
2. 配置
sudo vi /etc/xinetd.d/tftp
输入内容:
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = /opt/tftpboot
disable = no
}
3. 创建服务文件目录,要上传下载的文件都放在这个目录
与上面的server_args对应
sudo mkdir /opt/tftpboot
4. 改变权限
sudo chmod -R 777 /opt/tftpboot
sudo chown -R nobody /opt/tftpboot
5. 启动
sudo /etc/init.d/xinetd start
6. 传输(注意放在目录下的文件都必须是777权限的)
tftp xxx.xxx.xxx.xx
tftp>get xxxx
tftp>put xxxx