Nginx – Unit nginx.service is masked
Upgraded a Nginx Server to the latest 1.15.x, but hits the following error message :
$ sudo service nginx status * nginx.service Loaded: masked (/dev/null; bad) Active: inactive (dead) $ sudo service nginx restart Failed to restart nginx.service: Unit nginx.service is masked.
To solve it, just unmask with this :
sudo systemctl unmask nginx.service
$ sudo systemctl unmask nginx.service