公司电脑从win7升级到win10,无法启动nginx,日志里输出:2016/05/30 09:26:01 [emerg] 7024#5440: 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) 一看是80端口被占用了,问题就变成了杀掉占用80端口的进程. 1.打开cmd 输入netstat -ano |…
1.查看端口 netstat -ano 参数含义: -a, --all 显示监听或非监听状态的接口 Show both listening and non-listening (for TCP this means established connections) sockets. -o, --timers 包括相关信息网络定时器. Include information related to networking timers. -n 拒绝显示别名,能显示数字的全部转化成数字. Show…