在nginx的配置文件夹内,新增个laravel-test.conf配置文件 在 文件中 添加 location / { try_files $uri $uri/ /index.php?$query_string; } 即可