用到的命令 进入文件目录:cd /opt/lampp/ (这个文件目录可以登录http://localhost:8080/dashboard/去查,你的目录不一定是这个) 执行命令:sudo chmod -R 777 htdocs/