需要先找到软件的路径 访达里可以复制软件路径,我这里是/Applications/XAMPP/ 执行命令: cd /Applications/XAMPP/ 执行命令:sudo chmod -R 777 htdocs/