Most Linux distributions and BSD variants have NGINX in the usual package repositories and they can be installed via whatever method is normally used to install software ( on Debian, on Gentoo, on FreeBSD, etc). Be aware that these packages are often somewhat out-of-date.
This will help Nginx to recover from shutdown / restarts
sudo systemctl enable nginx
sudo systemctl start nginx
sudo nginx -s reload
sudo nginx -s quit
Create configs in
/etc/nginx/sites-enabled/and link them using symbolic links.