搭建TFTP服务器
sudo apt-get install xinetd tftpd tftp
创建文件/etc/xinetd.d/tftp,并且复制以下内容:
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}
依次执行:
sudo mkdir /tftpboot
sudo chmod -R 777 /tftpboot
sudo chown -R nobody /tftpboot
sudo /etc/init.d/xinetd restart 或者 sudo service xinetd restart
以上语句的意思是创建tftp服务器的文件夹并且递归修改权限和所属组。
还没有评论,来说两句吧...