1、点击File-Settings-Deployment 。点+按钮增加服务
2、填写Apache服务器的路径
3、OK,现在打开通过PhpStorm打开浏览器再试试,就可以了
4、如果对你有所帮助 ,请投票,谢谢 (=^▽^=)