Install and configuration nginx

nginx-logoNginx (pronounced engine-x) is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. The nginx project started with a strong focus on high concurrency, high performance and low memory usage. For the detail about nginx, click here

Install and configure nginx
Download repo from here or use

[root@my-home]# cd /tmp
[root@my-home tmp]# wget

install the repo

[root@my-home tmp]# rpm -ivh nginx-release-centos-6-0.el6.ngx.noarch.rpm

install nginx

[root@my-home tmp]# yum install nginx

start service nginx and the autostart

[root@my-home tmp]# service nginx start
[root@my-home tmp]# chkconfig nginx on

edit our iptables

[root@my-home tmp]# vim /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

open the browser

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>