Hello, I’m trying to follow this guide https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-16-04 but am running into an error at Step 3. When I type in “systemctl status nginx” I get the following:
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: en Active: failed (Result: exit-code) since Sun 2017-11-12 19:33:10 UTC; 1min 29
Any ideas why this may be happening?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Run the following command to test the Nginx config and see if there’s anything wrong with it:
sudo nginx -t
You can also view the service logs—they should contain any errors that Nginx outputted when it failed to start:
sudo journalctl -u nginx.service
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.