sudo apt-get install tftp-hpa--------客户端的安装 sudo apt-get install tftpd-hpa-------服务器端的安装
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
# Please note that you need a log_type line to be able to use log_on_success
# and log_on_failure. The default is the following :
# log_type = SYSLOG daemon info
}
includedir /etc/xinetd.d
sudo vim /etc/default/tftpd-hpa 将内容修改成 # /etc/default/tftpd-hpa TFTP_USERNAME="tftp" TFTP_DIRECTORY="/tftpboot" #这是你 tftp 服务器的工作目录,自行修改,注意,在新建工作目录时,最好修改其权限为 777, 命令 sudo chmod 777 /tftpboot TFTP_ADDRESS="0.0.0.0:69" TFTP_OPTIONS="-l -c -s"
service tftp
{
socket_type = dgram
wait = yes
disable = no
user = root
protocol = udp
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
#log_on_success += PID HOST DURATION
#log_on_failure += HOST
per_source = 11
cps =100 2
flags =IPv4
}
vi /etc/network/interfaces,打开该文件,将内容编辑成为: auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp address 192.168.1.141 //这项根据自己的情况自己设置 netmask 255.255.255.0 gateway 192.168.1.1
sudo service tftpd-hpa restart sudo /etc/init.d/xinetd reload sudo /etc/init.d/xinetd restart
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有