- 尝试:
lsof -i :80
并且kill -9
进程号,失败,还是占用 - 查看
systemctl status nginx
,faild(98: Address already in use )
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:9091 failed (98: Address already in use)
nginx: [emerg] still could not bind()
failed`
- 杀死nginx,
killall -9 nignx
并重启nginxsystemctl restart nginx
成功 - 重新访问,正常!!!