位置:首页 > PHP > 干货整理 >

PHPstorm could not list the contents of folder 的解决方案

字号+ 作者:micloud 来源:CSDN 2018-03-12 05:37 浏览量:5779

我在使用PHPstorm的时候,遇到了could not list the contents of folder的错误,使用外部的FTP工具是能正常连接到服务器的,但是在PHPStorm上却不行,纠结了半天,在PHPStorm的官网找到了以下内容

PhpStorm seems to connect to the server but can’t list files or perform upload

  This may be because the deployment server requires a so-called passive FTP connection. To set this mode, select Project Settings | Deployment, open Advanced Settings for the server and toggle Passive mode. 
  Limiting the number of concurrent FTP connections may also help in this situation. To do this, select Project Settings | Deployment, open Advanced Settings for the server and toggle Limit concurrent connections mode setting the number of connections (usually 3-5 concurrent connections is OK for any server if you experience problems with a higher number of connections).

附上访问链接: 
http://confluence.jetbrains.com/display/PhpStorm/Troubleshooting

翻译过来的意思是:

PhpStorm似乎连接到服务器,但不能列出文件或执行上传

  这可能是因为部署服务器需要一个所谓的被动FTP连接。设置此模式的方法,选择Project Settings | Deployment,然后找到并打开 Advanced Settings,选中 Passive mode即可。 
  限制并发FTP连接的数量也有助于这种情况。为此,选择Project Settings | Deployment,为服务器和切换限制并发连接模式设置连接数打开Advanced Settings(通常是3-5个并发连接可以为任何服务器如果你有更高的连接数的问题)。

这样,尝试使用以上解决办法。 
  打开服务器配置界面 Tools > Deployment > Configuration ,然后再界面上,找到 Advanced Settings (高级设置)的按钮,并打开,勾选 Passive mode 这个选项,然后OK.

再次测试已经可以正常上传了。 
看来遇到了问题还是要优先查看官方文档~


1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

相关文章
  • pc端常用电脑屏幕 ((响应式PC端媒体查询)电脑屏幕分辨率尺寸大全)

    pc端常用电脑屏幕 ((响应式PC端媒体查询)电脑屏幕分辨率尺寸大全)

    浏览次数:6096

  • PHP Header跳转并传递Post数据

    PHP Header跳转并传递Post数据

    浏览次数:5009

  • 阿里云云短信开发文档整理

    阿里云云短信开发文档整理

    浏览次数:4720

  • PHP正则匹配汉字字符/中文字符 指定字符长度

    PHP正则匹配汉字字符/中文字符 指定字符长度

    浏览次数:4309

网友点评
评论区域