访问localhost出现这种情况的话 目录隐藏了 需要开启 说明配置文件没配好 找到phpstudy右击 打开配置文件 点击vhosts-ini 这里的减号 改成 加号 改完保存 重启phpstuad 就好了