在终端运行:vi /目录/lampp/etc/extra/httpd-xampp.conf 在line 18,添加一行:Require all granted 后保存。 设置密码 /目录/lampp/lampp security