无法从远程服务器下载文件,“没有此文件”

无法从远程服务器下载文件,“没有此文件”

因此,我竭尽全力尝试将 .txt 文件从(基于 Windows 的)游戏服务器下载到我的(基于 Linux 的)Web 服务器,我尝试了 php 的不同变量(例如 fopen、ftp_get()),但均未成功(出现诸如流被拒绝等错误),因此,我最终尝试通过 cpanel 上的 Linux 终端使用 wget,据我所知,它可以读取我指向的文件大小,但返回“没有此文件”等,我尝试了各种组合来尝试此操作,但最基本的方法是这个,

wget -d --no-passive-ftp 

ftp://jizzm:'(RyLEc09lI3)l5'@194.147.122.188:8821/194.147.122.188_2302/WhiteList.txt

这是调试读出的内容,

**bash-4.1$ wget -d --no-passive-ftp ftp://jizzm:'******'@194.147.122.188:8821/194.147.122.188_2302/WhiteList.txt Setting --passive-ftp (passiveftp) to 0 DEBUG output created by Wget
1.12 on linux-gnu.
--2019-04-19 06:30:14--  ftp://jizzm:*password*@194.147.122.188:8821/194.147.122.188_2302/WhiteList.txt
           => `WhiteList.txt' Connecting to 194.147.122.188:8821... connected. Created socket 3. Releasing 0x0000000000de8d90 (new refcount 0). Deleting unused 0x0000000000de8d90. Logging in as jizzm ... 220 TCAdmin FTP Server
--> USER jizzm 331 User name okay, need password.
--> PASS ****** 230 User logged in, proceed. Logged in!
==> SYST ...
--> SYST 215 Windows_NT done.    ==> PWD ...
--> PWD 257 "/" is current directory done.
==> TYPE I ...
--> TYPE I 200 Command okay. done.  changing working directory Prepended initial PWD to relative path:    pwd: '/'    old: '194.147.122.188_2302'   new: '/194.147.122.188_2302'
==> CWD (1) /194.147.122.188_2302 ...
--> CWD /194.147.122.188_2302 250 CWD command successful. done.
==> SIZE WhiteList.txt ...
--> SIZE WhiteList.txt 213 20 20 conaddr is: 194.147.122.188
==> PORT ... conaddr is: 198.54.114.5 Local socket fd 4 bound. binding to address 198.54.114.5 using port 44880.
--> PORT 198,54,114,5,175,80 200 Port ok. done.    ==> RETR WhiteList.txt ...
--> RETR WhiteList.txt 550 A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 198.54.114.5:44880 No such file `WhiteList.txt'. Closed fd 4 Closed fd 3

一些基本信息,-在某处读到 selinux 可能存在问题,与我的提供商交谈过,但他们不愿意帮助我。-文件权限 iv 仔细检查并尝试了远程文件权限的不同组合。-在某处读到 windows/linux 之间可能存在编码问题?(我的知识有限,所以不理解这一点)有人能帮忙吗?谢谢!

相关内容