发表于: 2017-04-14 00:50:36
2 1198
4.21编辑
按照古尘的教程更改directory,果然如他所说出问题了。。。
之后查看logs/error.log,内容如下:
2017/04/21 22:05:58 [crit] 10212#8020: *9 GetFileAttributesEx() "G:\Project\2017\Apr
gixServer" failed (123: The filename, directory name, or volume label syntax is incorrect), client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.0", host: "localhost:8080"
发现是文件名或者路径有问题,文件名,压根就没改,那就是后面的问题,路径,可能是路径写错了,古尘也说自己的路径写错了,那么路径到底错在哪里了呢。
度娘ngix location 发现
古尘原文:E:\home\www;
应该改为:E:/home\www;
mission complete.
----------------------------------------
今天完成的事情:打开ngix瞅瞅
明天计划的事情:搞定ajax
遇到的问题:按照古尘的教程发现打开ngix啥都没有,然后自己排查加上自己找教程发现两个问题。
- 1. log的error看到2017/04/14 00:32:02 [emerg] 23764#14620: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions) ,后来发现是叫防火墙拦住了。
- 2. 没发现防火墙问题之前,改了下端口。
- 3. 重新运行,打开端口地址,提示是否拦截--否,正常弹出页面,ok。
收获:知道了ngix,以前没用过,用的别的。goon
太晚了,不多写了。。
评论