I installed a clean ubuntu 14.04, installed nginx 1.11.1 from the developer repository, the browser on the IP address does not open. When a team:

$ sudo systemctl restart nginx sudo: systemctl: command not found 

2 answers 2

In Ubuntu, it's better to install nginx from PPA . It is built on Debian / Ubuntu guidlans and is better integrated with the system.

    Well, ubunt and says that the command was not found. SystemD on 15+ versions of Ubuntu went. Run Nginx:

     sudo service Nginx start 
    • Unfortunately, this command also does not launch it. He writes in the log: 2016/06/13 07:53:45 [emerg] 4678 # 4678: bind () to 0.0.0.0:80 failed (98: Address already in use) - Sylon
    • Most likely Apache netstat -tnlp | grep 80 look who hangs on the 80th port. You can try running sudo service apache stop - k3NGuru
    • Apache is definitely not there, pure ubuntu, already 11 times I am trying to figure it out. There is a thought that nginx 1.11.1 closes http and default ports when I download from the developer’s site. - Sylon
    • bind () to 0.0.0.0:80 failed (98: Address already in use) He says that someone is hanging on port 80, you can set 8080 in nginx.conf and run n80x instead of port 80. - k3NGuru
    • On a clean system, according to logic, nothing should occupy it. Apparently the firewall closed it. I will try again to reinstall Ubuntu ... - Sylon