Nginx (pronounced as engine-x) is a free, open-source, and high-performance HTTP server. NGINX also a reverse proxy, and IMAP/POP3 proxy server. This server is developed Igor Sysoev and later by the community. NGINX is one of Apache Server best alternative.
To install Nginx on your Ubuntu 15.04, you can run this command in terminal:
[sourcecode]
sudo apt-get install nginx
[/sourcecode]
Beginning with Ubuntu 15.04, the default init system is using systemd, so, to run the Nginx server you can use systemctl command:
[sourcecode]
sudo systemctl start nginx
[/sourcecode]
and check their status with:
[sourcecode]
sudo systemctl status nginx
[/sourcecode]
this is the sample output of Nginx status on my server:
[sourcecode]
● nginx.service – A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2015-05-01 16:18:40 IST; 45s ago
Main PID: 1510 (nginx)
CGroup: /system.slice/nginx.service
├─1510 nginx: master process /usr/sbin/nginx -g daemon on; master_…
├─1511 nginx: worker process
├─1512 nginx: worker process
├─1513 nginx: worker process
└─1514 nginx: worker process
May 01 16:18:39 server systemd[1]: Starting A high performance web server a…..
May 01 16:18:40 server systemd[1]: Failed to read PID from file /run/nginx….nt
May 01 16:18:40 server systemd[1]: Started A high performance web server an…r.
May 01 16:19:17 server systemd[1]: Started A high performance web server an…r.
Hint: Some lines were ellipsized, use -l to show in full.
[/sourcecode]
You can test it on your web browser, type this address: http://localhost/. You’ll see something like below on your screen: