If you need to disable a daemon from automatically starting at boot on Ubuntu or Debian, you can run:
sudo update-rc.d -f nginx disable
In the case that is nginx which you want to stop from being started at boot time.
For Apache that would be:
sudo update-rc.d -f apache2 disable
And so on.