下载了nginx1.8.0的zip包,之后解压缩,得到正常结果 ,如图所示。
但是在文件夹运行 start nginx后,只见黑窗口一闪而过,在浏览器里输入
http://127.0.0.1/打不开网页,提示404错误的。进入logs文件夹中翻看error.log问件,发现提示 ind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions) 。
这是为什么,该怎么处理呢?
--
修改:koutian FROM 122.137.151.*
FROM 122.137.151.*