在error.log看到报错,然后在cmd查找端口被占用没有,占用的话就在进程里删掉所有的nginx,然后在nginx.conf
里配置location / {
root D:/xxx
index login/index.html;
}
以管理员身份运行nginx,打开链接:http://localhost:8086//login/index.html
在error.log看到报错,然后在cmd查找端口被占用没有,占用的话就在进程里删掉所有的nginx,然后在nginx.conf
里配置location / {
root D:/xxx
index login/index.html;
}
以管理员身份运行nginx,打开链接:http://localhost:8086//login/index.html