as a beginer of nginx, one must has met this error
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
this means some other process is using port 80.
it also implies one should kill these processes.
using
sudo fuser -k 80/tcp
then restart nginx
sudo service nginx restart