首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >tftpd在xinetd上,无法提供文件错误`tftpd:未知选项-?`

tftpd在xinetd上,无法提供文件错误`tftpd:未知选项-?`
EN

Ask Ubuntu用户
提问于 2020-12-22 00:39:35
回答 1查看 1.5K关注 0票数 0

我正在尝试提供tftpd的连接(使用xinetd),并且得到了这个错误

代码语言:javascript
运行
复制
$ sudo systemctl status xinetd
"tftpd[18566]: unknown option -?"

在从远程主机建立连接后,尝试获取文件(或任何其他操作)。我不知道可能出了什么问题,因为我根据教程设置了所有权限和所有内容

代码语言:javascript
运行
复制
sudo apt-get install xinetd tftpd tftp
sudo mkdir -p /etc/xinetd.d/
sudo touch /etc/xinetd.d/tftp

sudo vim /etc/xinetd.d/tftp
##copy the text below
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /srv/tftp
disable = no
}


sudo mkdir /srv/tftpd
sudo cp ~/Downloads/openwrt-18.06.1-ar71xx-generic-wndr3800-squashfs-factory.img /srv/tftp
sudo chmod -R 777 /srv/tftp
sudo chown -R nobody /srv/tftp
sudo systemctl restart xinetd.service
EN

回答 1

Ask Ubuntu用户

发布于 2020-12-22 09:49:41

基本上,由于某些原因,我无法使存储库中包含的tftpd与xinetd“混搭”。我已经找到了我的方法,尽管使用opentftpd,可以在本教程中解释一个简短的教程。Thisone运行在xinetd之外,并且可以运行https://www.youtube.com/watch?v=K5yOBr3uoGs

代码语言:javascript
运行
复制
wget http://downloads.sourceforge.net/proj...

tar xvf opentftpspV1.66.tar.gz
cd opentftp/
g++ opentftpd.cpp -oopentftpd -lpthread
mkdir /home/pi/files
chmod  777 /home/pi/files/
sudo bash
cp opentftpd /usr/bin/
vi /etc/opentftp.ini

## File contents ##
[LISTEN-ON]

[HOME]
/home/pi/files

[TFTP-OPTIONS]
username=pi
ThreadPoolSize=10
Read=Y
Write=Y
Overwrite=Y
##################

/usr/bin/opentftpd -i /etc/opentftp.ini
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1301955

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档