Use the following command on the window to start nginx and report an error
nginx: [alert] could not open error log file: CreateFile() "logs/error.log" fail
ed (3: The system cannot find the path specified)
2022/04/24 20:57:16 [warn] 2880#1980: the "ssl" directive is deprecated, use the
"listen ... ssl" directive instead in D:\nginx-1.18.0/conf/proxy-to-http.conf:53
2022/04/24 20:57:16 [emerg] 2880#1980: CreateFile() "D:\nginx-1.18.0/logs/access
.log" failed (3: The system cannot find the path specified)
nginx -c ./conf/nginx.conf
1. First check the location where the current command is executed. If not,
solution:
delete all files under logs and then execute the above command
Read More:
- How to Solve “413 request entity too large” Error
- How to Solve Swagger error: typeerror: failed to fetch
- ZK Error contacting service. It is probably not running [How to Solve]
- [Solved] MultipartException: Failed to parse multipart servlet request; nested exception is java.lang.Runtime
- Mac project startup error: logback configuration error detected
- The java springboot websocket service server actively closes the connection and causes java.io.EOFException to be thrown
- MapReduce running in Hadoop environment with maven
- [Solved] JAVA connect HBase program is stuck and does not report an error
- Java Running Error: Could not find or load main class
- [Solved] Mac Maven Command Error: zsh: command not found
- [Javac compilation exception] javac compilation prompts that the package in jdk cannot be found error: package jdk.internal.org.objectweb.asm does not exist and error: cannot find symbol
- Split log by date in log4j2 of spring boot
- [Fixed] Disgusting bug Error:Failed to Load project configuration: cannot parse filemessage: content is not allowed in the preface.
- [Solved] canal Startup Error: error while reading from client socket java.io.IOException: Received error packet:
- IDEA Create Web Project with maven Error: The desired archetype does not exista…
- [Solved] Springboot upload failed to find the temporary directory error
- [Solved] Rocketmq installation error: org.apache.rocketmq.remoting.exception.remotingconnectexception: connect to failed
- [Solved] JAVA Error: Error:A JNI error has occurred,please check your installation and try again
- Rancher application service error: request entity too large
- Tomcat service startup error: cannot allocate memory [How to Solve]