Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

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!
For the last step in setting up nginx to startup after reboots, you may need to install chkconfig first. sudo apt-get install chkconfig
Then proceed with the last two commands: sudo chkconfig --add nginx sudo chkconfig nginx on
Than you for the the suggestion.
The tutorial has been updated to reference just update-rc.d which is an ubuntu command that does not need any additional installation.
There is an another alternative, in my opinion better than remembering the path, of ‘sudo /etc/init.d/nginx start’
‘sudo service nginx start’ -will do the same thing.
With 12.10, I am getting the following errors when I try to start nginx:
Starting nginx nginx nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) nginx: [emerg] still could not bind()
It’s not loading
@info - perhaps apache2 is installed? if debian / ubuntu enter: service apache2 status and if it comes back Apache2 is running (pid …) Then you likely have apache configured to run off of port 80.
Another possible solution is found in /etc/nginx/sites-available/default. Do the following and see if it clears it up (I’m running of memory, don’t know if you NEED sudo or not):
sudo vim /etc/nginx/sites-available/default
Look for the following lines: listen 80; listen [::]:80 default_server;
Change them so they read (hit i to enter insert mode): listen 80; listen [::]:80 ipv6only default_server;
I was also getting the same error. nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) and when i typed the localhost in the browser, then i was getting
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet. instead of nginx welcome page
that is apcache2 is running on the same port, so the solution is given below
1- find the apache2 ports.conf file
sudo /etc/apache2/ports.conf
2- change the port other then 80 , i make it as 70
3- save the file
4- restart your system
it will works for you also, if you type the localhost in the browser , you will get nginx welcome page
– Thanks
Saurabh