背景介绍:LAMP开发是很多公司喜欢采用的技术组合,故而做php开发,使用linux环境也是很多公司的要求。本文就来介绍下如何在windows下,使用phpstorm集成开发环境,来开发放在linux虚拟机的PHP项目。

环境介绍:win7系统,phpstorm,虚拟主机ubuntu-server版。

1 创建工程

如何用phpstorm编辑远程项目

2 选择如下选项

如何用phpstorm编辑远程项目

3 命名项目

如何用phpstorm编辑远程项目

 4 如果已经配置好sftp,直接使用即可。或者创建新的连接。

如何用phpstorm编辑远程项目

5 点击Project Root,下一步。

如何用phpstorm编辑远程项目

6 选择默认的即可

如何用phpstorm编辑远程项目

7 linux目录如下

如何用phpstorm编辑远程项目

 

这样,在浏览器输入linux的ip即可访问到index.php页面

如何用phpstorm编辑远程项目

如果想文件一更新,就保存在远程linux上,也很简单,勾选自动保存选项。upload changes files automatically to the default server: Always

如何用phpstorm编辑远程项目

转自:https://www.cnblogs.com/shaoyikai/p/4381642.html

相关文章:

  • 2022-12-23
  • 2021-07-24
  • 2021-05-12
  • 2021-08-15
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
  • 2021-10-12
猜你喜欢
  • 2022-01-23
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2021-09-11
  • 2021-10-24
相关资源
相似解决方案