About windowsnginx not start to solve the problem, one of history's most pit series (original)

 

        I was directly in the official website to download windows1.6 stable version of nginx, why download it because facilitate learning in the window, the better the linux install and learn nginx.

        Download to D: \ nginx learning \, unzip it, and launch it into the

Then in the browser input: 172.0.0.1 or localhost,

Error message:

               2019/06/05 17:45:56 [emerg] 14776#14780: CreateFile() "D:\nginx学习\nginx-1.16.0/conf/nginx.conf" failed (3: The system cannot find the path specified)

              

Open error.log error log:

 

In the Task Manager end view not nginx.exe program, what does this show did not start successfully!

My guess is: enter start nginx.exe under nginx extracted directory with the command cmd, the other 80 ports are occupied, kill it, or should the line profile into ngnix the port setting is not port 80, it should be

             Then I kill a 80-port, but also to configure the port settings 8888, the last eleven test not.  

See above this error code: 2019/06/05 17:45:56 [emerg] 14776 # 14780: CreateFile () "D: \ nginx learn \ nginx-1.16.0 / conf / nginx.conf" failed ( 3: The system can not find the path specified)

Have you found that there is a fatal problem they feel neglected, I nginx-1.16.0 into a directory with a Chinese path, in the process of learning to program, but also to listen to any installation or instructor-extracting file, have not put to the directory with Chinese characters, the consequences could be disastrous!

       为什么我要在“nginx学习”加上“学习”呢,因为爱学习,所以为了解决我的问题,我把D:\nginx学习\nginx-1.16.0改为了D:\nginxstudy\nginx-1.16.0,然后启动nginx成功访问!

      任何安装程序都不要放在带中文的目录下!

      任何安装程序都不要放在带中文的目录下!

      任何安装程序都不要放在带中文的目录下!

Guess you like

Origin www.cnblogs.com/fby698/p/10981347.html