1. 程式人生 > >Nginx windows下使用問題記錄

Nginx windows下使用問題記錄

記錄windows下使用Nginx的問題

1、啟動失敗

C:\WINDOWS\system32>nginx.exe nginx: [alert] could not open error log file: CreateFile() "logs/error.log" failed (3: The system cannot find the path specified) 2018/09/30 07:29:16 [emerg] 10504#6732: CreateFile() "C:\WINDOWS\system32/conf/nginx.conf" failed (3: The system cannot find the path specified)

解決方法:

在nginx目錄下啟動:

C:\WINDOWS\system32>cd /d D:\IDE\nginx-1.15.3

D:\IDE\nginx-1.15.3>nginx.exe nginx: [warn] "user" is not supported, ignored in D:\IDE\nginx-1.15.3/conf/nginx.conf:2