当第一次启动nginx时,我们访问localhost:80端口显示无法访问
通过Nginx文件夹下的logs文件中error.log日志信息看到标题信息
这是我们首先要考虑路径中包含了中文,如杂物就是报错的原因
CreateFile() "D:\Nginxginx-1.19.0esouce/favicon.ico" failed (123: The filename, directory name, or volume label syntax is incorrect), client: 127.0.0.1, server: resouce, request: "GET /favicon.ico HTTP/1.1", host: "localhost:8081", referrer: "http://localhost:8081/"2020/07/07 23:20:34 [notice] 5916#15948: signal process started
这个报错则是在你路径中不要使用\而是要使用/,这样服务器就不会报500错误