首先远端服务器的路径:
/var/www
-rwxrwxrwx 1 jiangzhaowei jiangzhaowei 235 6月 12 2017 index.html* lr-xr-xr-x 1 root root 21 2月 23 2017 phpmyadmin -> /usr/share/phpmyadmin/ dr-xr-xr-x 18 web rda_manager 4096 12月 15 11:15 web/ //真正的部署目录 lrwxrwxrwx 1 jiangzhaowei jiangzhaowei 26 6月 30 2017 webjiang -> /kk/jiangzhaowei/share/web/ //测试目录
远端工作目录:
jiangzhaowei@ubuntu:/var/www$ ll /kk/jiangzhaowei/share/web/ 总用量 72 drwxrwxrwx 2 jiangzhaowei jiangzhaowei 4096 1月 20 21:55 pq/ drwxrwxrwx 2 jiangzhaowei jiangzhaowei 4096 1月 20 21:55 scripts/ drwxrwxrwx 4 jiangzhaowei jiangzhaowei 4096 1月 20 21:55 .svn/ drwxrwxrwx 2 jiangzhaowei jiangzhaowei 4096 1月 20 21:55 test/ drwxrwxrwx 2 jiangzhaowei jiangzhaowei 4096 1月 20 21:55 tv/ drwxrwxrwx 2 jiangzhaowei jiangzhaowei 4096 1月 20 21:55 upload/ drwxrwxrwx 2 jiangzhaowei jiangzhaowei 4096 1月 20 22:07 user/
PhpStorm FTP配置:
FTP配置:
FTP host:即远端FTP服务器
Port: 端口
Root path:远端FTP工作路径,直接使用Autodetect路径即可,此处是FTP的跟路径(+mappings的FTP工作路径才为最后的部署路径)
Web sever Root URL:WEB服务器域名:端口号
Mappings配置:
Deployment path on sever 为FTP工作路径
即部署路径= Root path(上图红色箭头)+ Deployment path on sever(下图红色箭头)
Web path on server:WEB服务器端路径
即URL = Web sever Root URL(上图蓝色箭头)+ Web path on server(下图蓝色箭头)