Server M2
Check which app use the ports
sudo netstat -tulpn
Kill the process
sudo kill -2 xxxx
Start nginx
sudo systemctl start nginx.service