Skip to content

Instantly share code, notes, and snippets.

@jinnabaalu
Created December 22, 2016 04:15
Show Gist options
  • Save jinnabaalu/0d3c8b1929438429e6cdb5cefdffc4e6 to your computer and use it in GitHub Desktop.
Save jinnabaalu/0d3c8b1929438429e6cdb5cefdffc4e6 to your computer and use it in GitHub Desktop.
Install Nginx :
sudo apt-get update
sudo apt-get install nginx
sudo service nginx start
sudo service nginx restart
sudo service nginx status
sudo service nginx stop
ifconfig -a (get all ip addresses)
GOTO Web browser and paste local IP and enter. It shows the the nginx page
(OR)
sudo netstat -ntlp
Checkk the ports nginx listening
netstat -antl | grep :80
netstat -antlp | grep :80
sudo netstat -antlp | grep :80
To list the applications by nginx
ls /usr/share/nginx/www
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment