1: 启动Apache 服务
//开启apache: sudo apachectl start
//重启apache: sudo apachectl restart
//关闭apache: sudo apachectl stop
2: 点击Finder,然后Command+Shift+G,前往如下路径(mac下Apache服务器的文件路径)/Library/WebServer/Documents
3: 编写php上传文件代码 设置要存储文件的读写权限
1: 启动Apache 服务
//开启apache: sudo apachectl start
//重启apache: sudo apachectl restart
//关闭apache: sudo apachectl stop
2: 点击Finder,然后Command+Shift+G,前往如下路径(mac下Apache服务器的文件路径)/Library/WebServer/Documents
3: 编写php上传文件代码 设置要存储文件的读写权限