How to Install NGINX in Ubuntu 15.04

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:

sudo apt-get install nginx

Beginning with Ubuntu 15.04, the default init system is using systemd, so, to run the Nginx server you can use systemctl command:

sudo systemctl start nginx

and check their status with:

sudo systemctl status nginx

this is the sample output of Nginx status on my server:

● 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.

You can test it on your web browser, type this address: http://localhost/. You’ll see something like below on your screen:
nginx-ubuntu

Wagiman Wiryosukiro

Petani Sistem Informasi, tukang las plugin & themes Wordpress. Co-Founder SistemInformasi.biz. Saat ini aktif sebagai Developer & kontributor di OpenMandriva Linux.

You may also like...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: