PHPstorm could not list the contents of folder 的解决方案
我在使用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.
再次测试已经可以正常上传了。
看来遇到了问题还是要优先查看官方文档~
本站所有文章、数据、图片均来自互联网,一切版权均归源网站或源作者所有。
如果侵犯了你的权益请来信告知我们删除。邮箱:595397166@qq.com