我在本地计算机上使用PHPStorm,Git和VirtualBox进行本地开发.我使用Git来处理将工作转移到临时或生产环境的过程.目前我正在使用
MobaXterm(Windows的一个优秀的免费标签ssh客户端)来终端访问在登台和生产服务器上做事情. PHPStorm内置了一个本地终端,但我如何使用它来访问多个ssh终端? (这样我可以从我的IDE中进行本地,远程登台和远程生产终端访问)
解决方法
弄清楚了!
在新的副本上,PHPStorm将拥有工具>终端调出本地终端.要获得额外的ssh终端访问权限,这就是我所做的……
>设置服务器
1.1) File > Settings > (Type: "Deployment" into the search Box) 1.2) Hit the + button and fill in the necessary fields into the connection tab. 1.3) Click on the "Mappings" tab and clear the field "Local path" since we will only be using the terminal. 1.4) Repeat Steps 1.2 and 1.3 for each server you want a terminal tab for. 1.5) Don't set any of these as default,so that you will be prompted to choose a server in Step #2 below...
>启动远程终端选项卡(这也将打开本地终端)
2.1) Tools > Start SSH session (this option doesn't appear until Step #1 is completed) 2.2) You will be prompted to select a server from Step #1. The terminal window appears and a new tab appears next to "local" in the terminal window.
编辑:(感谢Dan Dascalescu)您可能还想确保启用SSH Remote Run插件.默认情况下,它在PHPStorm 8中启用(不确定早期版本).