1,在nginx.conf配置文件加上圈中的代码 #加上下面这个直接可以把服务器变文件夹 location /upload { alias html/upload; autoindex on; } 2,输入地址看效果