已解决:linux客户端连接ftp服务器报错:ftp command not found

已解决:linux客户端连接ftp服务器报错:ftp command not found

  • 安装搭建好ftp服务器,在连接的时候报错🤦‍♀️:
[root@chenshuyi network-scripts]# ftp 1.1.1.2
-bash: ftp: 未找到命令

  • 就是这么直给的答案,竟然找了这么久,没有这个命令就是因为没安装呗,装它试试👀
[root@chenshuyi network-scripts]# yum install -y ftp

  • 是的连上了✔

在这里插入图片描述

  • 1
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
################################################################################ # # # Super Ftp Server and Client for Wall-e # # # # SatMay30 2009 # # # ################################################################################ ////////\\\\\\\ ||Introduct || \\\\\\\\/////// Wall-e is a team for a project about two-demision code , for details at this:http://hi.baidu.com/hzau_wall_e this server and client programs is created for the s3c2410 platform board to conveniencely control it and fulfil files transferring at the same time , that is a simple combination for telnet and ftp server. Of course there are many fails and bugs in it , I'll appreciate the correction and criticism! ////////\\\\\\\ ||Functions || \\\\\\\\/////// 1 no count and no authentication , the shell running level result in who run the server in server side 2 basic ftp transferring functions as get files (g files ) and send files(s fname). 3 running common shells in client side(!cmd) and server side(cmd) ////////\\\\\\\ || Usage || \\\\\\\\/////// 1 run the server and client server: ./server_x # x is for your platform h for host pc, a for arm, as details to see Makefile client: ./client_x xx.xx.xx.xx then you can operate in the client side. the prompt of client side will be: Walle> 2 run server side shells [usage] : cmd [return]: return what the shell will return to stdout and stderr . [eg]: Walle>ls -l 总计 152 -rwxr-xr-x 1 root root 17382 05-30 22:00 client_a -rwxr-xr-x 1 root root 13060 05-30 22:00 client_h -rw-r--r-- 1 root root 4485 05-30 16:01 common.h -rwxr-xr-x 1 root root 462 05-30 21:43 Makefile -rw-r--r-- 1 root root 579 05-30 22:00 README -rw-r--r-- 1 root root 577 05-30 22:00 README~ -rwxr-xr-x 1 root root 20835 05-30 22:00 server_a -rwxr-xr-x 1 root root 16176 05-30 22:00 server_h -rwxr-xr-x 1 root root 5225 05-30 21:47 sock_client.c -rwxr-xr-x 1 root root 4362 05-30 15:09 sock_server.c Walle>cd /root Walle>pwd /root Walle> Walle>get aaa sh: get: command not found Walle> 3 run client side local shells [usage] :! cmd [return]: return what the shell will return to stdout and stderr . [eg] : Walle>!ls /root a es OperaDownloads aa f Pictures anaconda-ks.cfg fcitx Public automake_cn.htm g save_usb b install server_a client_h install.log server_h common.c install.log.syslog src common.h~ ked tcpd-0.2.0.tar.gz dairy Music Templates Desktop my_fs tmp Documents myos Unsaved Document 1 4 send files [usage] :s localfilename [return]: return successfully message,if success, or print error messages error message will be introduced below [eg] : Walle>! cd /usr/src/ Walle>s qt-embedded-linux-opensource-src-4.4.3.tar.gz send files successfully! Walle>ls -l ...... 1 root root 124238957 05-30 22:09 qt-embedded-linux-opensource-src-4.4.3.tar.gz Walle> tar xzvf qt-embedded-linux-opensource-src-4.4.3.tar.gz ...... 5 get files [usage] : g remotefilename [return]: return successfully message,if success, or print error messages error message will be introduced below [eg] : Walle> ls .... Walle>g tcpd-0.2.0.tar.gz get remote files successfully! Walle> 5 error return xsh:cmd: xxx xxx : error return from shells F_N_EST : file does not exists! SOCK_SEND_ERR : send socket data err! case S_RPC_TIMEOUT : socket rpc timeout!(wait for 5 secs no sequential data arrives from server) case F_C_ERR : file create error! default : unknown error! 6 bugs both side couldn't send control signal to each other, that is you can only send message that after a line break. so there are many shells programs couldn't be runned by client side: vi, ex,ed ,top ... , I'm really sorry for this. 7 contact if you've any questions please send Email to me at [email protected] or chat me by QQ : 547268476, I'll appreciate it !
### 回答1: 这个错误提示意味着你的系统中没有安装FTP命令。你需要安装FTP客户端才能使用FTP命令。你可以通过以下命令来安装FTP客户端: 在Ubuntu或Debian上: sudo apt-get install ftp 在CentOS或RedHat上: sudo yum install ftp 安装完成后,你就可以使用FTP命令了。 ### 回答2: “bash: ftp: command not found” 表示在bash终端中输入“ftp命令时出现错误,意味着系统中没有找到“ftp命令或者没有安装与之相关的软件。 要解决这个问题,可以按照以下步骤操作: 1. 首先,确认系统是否安装了FTP客户端。可以通过在终端中输入“ftp命令来检查。如果未安装,则需要安装FTP客户端软件。 2. 在大多数Linux发行版中,可以使用包管理器来安装FTP客户端。常用的包管理器包括apt、yum、dnf等。根据不同的发行版和包管理器,使用适当的命令进行安装。例如,在Debian或Ubuntu中使用apt命令:sudo apt-get install ftp 3. 安装完成后,再次尝试输入“ftp命令,应该可以正常工作了。如果还是出现相同的错误,可能需要检查系统的环境变量配置。 4. 检查环境变量是否正确配置。在终端中输入“echo $PATH”命令,查看环境变量中是否包含FTP客户端的安装路径。如果没有,则需要将FTP客户端的安装路径添加到环境变量中。可以通过修改bash配置文件(如~/.bashrc或~/.bash_profile)来设置环境变量。添加类似于“export PATH=$PATH:/path/to/ftp/client”这样的语句,然后重新启动终端或执行“source ~/.bashrc”等命令使配置生效。 通过按照上述步骤进行检查和配置,应该能够解决bash: ftp: command not found”错误,并成功在bash终端中使用“ftp命令。 ### 回答3: 这个错误信息常见于在Linux系统的命令行中运行ftp命令时出现,提示找不到ftp命令。产生这个错误的原因可能有以下几种: 1. 系统中未安装ftp客户端软件:默认情况下,某些Linux发行版没有安装ftp客户端软件。要解决这个问题,可以尝试从软件包管理器中安装ftp软件包。例如,对于Debian或Ubuntu系统,可以使用以下命令安装ftp软件包:sudo apt-get install ftp。 2. 环境变量中未包含ftp命令的路径:在某些情况下,即使安装了ftp软件包,但在命令行中仍无法找到ftp命令。这可能是因为系统的环境变量中没有包含ftp命令的路径。要解决这个问题,可以尝试手动将ftp命令的路径添加到环境变量中。例如,在bash shell中,可以使用以下命令ftp命令的路径添加到环境变量PATH中:export PATH=$PATH:/path/to/ftp。 3. 文件系统中未包含ftp命令的可执行文件:如果在系统中找到了ftp命令的路径,但执行ftp命令时仍出现“command not found”错误,可能是由于文件系统中未包含ftp命令的可执行文件。这可能是由于安装ftp软件包的时候出现了错误或软件包损坏导致的。要解决这个问题,可以尝试重新安装ftp软件包或从其他可靠来源获取正确的ftp可执行文件。 综上所述,出现“bash: ftp: command not found”错误提示时,首先可以尝试安装ftp软件包,如果已安装但仍无法访问ftp命令,可以检查环境变量并确保文件系统中存在正确的ftp可执行文件。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值