1、重启nginx出现端口占用问题:
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
2、解决方法:
第一步:杀死占用80端口的进程
sudo fuser -k 80/tcp
第二步:重启nginx
systemctl restart nginx