sudo systemctl status nginx #if nginx is active then stop with sudo systemctl stop nginx #start apache2 sudo systemctl start apache2.service
sudo systemctl status nginx sudo systemctl stop nginx // if nginx is running