Mac 文件或者目录软连接 把htdocs 目录软连接到根目录 ln -s /Applications/MAMP/htdocs /Users/yanruicheng 上述命令成功后,ls 查看,然后cd 便可以进入这个目录了。