Heim > Backend-Entwicklung > PHP-Tutorial > 连接ftp服务器,公网centos通过ftp命令无法连接,本机cmd下的ftp命令和客户端可以连接

连接ftp服务器,公网centos通过ftp命令无法连接,本机cmd下的ftp命令和客户端可以连接

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Freigeben: 2016-06-06 20:09:23
Original
1338 Leute haben es durchsucht

公网的linux通过ftp命令和php的ftp_connect都无法连接,试了3台机器,能ping通,但是在最初始连接的时候就一直处于等待状态,更别提登陆ftp服务器了。
但是本地windows机器通过客户端或者cmd下的ftp命令均可以连接且登陆。
ftp服务器的防火墙已经关闭,ftp端口默认21

回复内容:

公网的linux通过ftp命令和php的ftp_connect都无法连接,试了3台机器,能ping通,但是在最初始连接的时候就一直处于等待状态,更别提登陆ftp服务器了。
但是本地windows机器通过客户端或者cmd下的ftp命令均可以连接且登陆。
ftp服务器的防火墙已经关闭,ftp端口默认21

那你需要telnet一下看看你的这个接口是否针对公网开放了。
按你的说法,你的21端口在公网下是无法访问的。

Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Aktuelle Ausgaben
PHP-Datenerfassung?
Aus 1970-01-01 08:00:00
0
0
0
PHP-Erweiterung intl
Aus 1970-01-01 08:00:00
0
0
0
Wie man PHP gut lernt
Aus 1970-01-01 08:00:00
0
0
0
Mehrere PHP-Versionen
Aus 1970-01-01 08:00:00
0
0
0
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage