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.

再次測試已經可以正常上傳了。 
看來遇到了問題還是要優先查看官方文檔~

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章