nginx报错500,证书已到期?
安装好nginx之后,访问localhost:80,nginx提示报错500 证书已到期,查看error日志显示An attempt was made to access a socket in a way forbidden by its access permissions错误原因:80端口被占用解决办法:1、win+r进入cmd,输入netstat -aon | findstr :80,查看是哪个占用了该端口。2、tasklist|findstr "4364"执行该命令