22 April 2016

Cara instalasi Nginx di Linux Redhat/CentOS 7

Nginx adalah tool web server open source. Nginx sangat powerful, stabil, mudah di konfigurasi, ringan[low resource comsumption], high-performance HTTP server dan reverse proxy.

Install Nginx

Prerequisuite : Setting konfigurasi Nginx repository

K: $ nano /etc/yum.repos.d/nginx.repo

Tambahkan konfigurasi berikut ini:

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/rhel/$releasever/$basearch/
gpgcheck=0
enabled=1

Enable repo dan instalasi Nginx

K: $ yum --enablerepo=nginx -y install nginx
K: $ systemctl enable nginx
K: $ systemctl start nginx
K: $ systemctl status nginx

Link : https://www.nginx.com/