{"id":3568,"date":"2012-07-18T23:35:58","date_gmt":"2012-07-18T15:35:58","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=3568"},"modified":"2023-04-28T09:49:02","modified_gmt":"2023-04-28T09:49:02","slug":"how-to-install-nginx-web-server-on-centos-6-3","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-nginx-web-server-on-centos-6-3\/","title":{"rendered":"How to Install Nginx Web Server on CentOS 6.3"},"content":{"rendered":"<p>Nginx or \u201cengine x\u201d is a free, open-source HTTP server and one of the alternative to Apache http server. It\u2019s a high performance edge web server with the lowest memory footprint and the key features to build modern and efficient web infrastructure. This post will show the quick step to install nginx on linux CentOS 6.3 server.<\/p>\n<p>1. Prepared yum repository for nginx :<\/p>\n<pre>\n[root@centos63 ~]# vi \/etc\/yum.repos.d\/nginx.repo\n<\/pre>\n<pre>\n[nginx]\nname=nginx repo\nbaseurl=http:\/\/nginx.org\/packages\/centos\/$releasever\/$basearch\/\ngpgcheck=0\nenabled=1\n<\/pre>\n<p>2. Perform yum install for nginx :<\/p>\n<pre>\n[root@centos63 ~]# yum install nginx -y\n<\/pre>\n<p>Examples :<\/p>\n<pre>\n[root@centos63 ~]# yum install nginx -y\nLoaded plugins: fastestmirror, presto\nLoading mirror speeds from cached hostfile\n * base: mirrors.hostemo.com\n * extras: mirrors.hostemo.com\n * updates: mirrors.hostemo.com\nnginx                                                                        | 1.3 kB     00:00\nnginx\/primary                                                                | 3.9 kB     00:00\nnginx                                                                                         25\/25\nSetting up Install Process\nResolving Dependencies\n--> Running transaction check\n---> Package nginx.i386 0:1.2.2-1.el6.ngx will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n====================================================================================================\n Package              Arch                Version                        Repository            Size\n====================================================================================================\nInstalling:\n nginx                i386                1.2.2-1.el6.ngx                nginx                308 k\n\nTransaction Summary\n====================================================================================================\nInstall       1 Package(s)\n\nTotal download size: 308 k\nInstalled size: 623 k\nDownloading Packages:\nSetting up and reading Presto delta metadata\nProcessing delta metadata\nPackage(s) data still to download: 308 k\nnginx-1.2.2-1.el6.ngx.i386.rpm                                               | 308 kB     00:02\nRunning rpm_check_debug\nRunning Transaction Test\nTransaction Test Succeeded\nRunning Transaction\n  Installing : nginx-1.2.2-1.el6.ngx.i386                                                       1\/1\n----------------------------------------------------------------------\n\nThanks for using NGINX!\n\nCheck out our community web site:\n* http:\/\/nginx.org\/en\/support.html\n\nIf you have questions about commercial support for NGINX please visit:\n* http:\/\/www.nginx.com\/support.html\n\n----------------------------------------------------------------------\n  Verifying  : nginx-1.2.2-1.el6.ngx.i386                                                       1\/1\n\nInstalled:\n  nginx.i386 0:1.2.2-1.el6.ngx\n\nComplete!\n<\/pre>\n<p>3. Start nginx :<\/p>\n<pre>\n[root@centos63 ~]# service nginx start\nStarting nginx:                                            [  OK  ]\n<\/pre>\n<p>4. Make nginx auto start at boot :<\/p>\n<pre>\n[root@centos63 ~]# chkconfig nginx on\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Nginx or \u201cengine x\u201d is a free, open-source HTTP server and one of the alternative to Apache http server. It\u2019s a high performance edge web server with the lowest memory&#8230;<\/p>\n","protected":false},"author":6,"featured_media":2750,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1014],"tags":[1536,1605,1914],"class_list":["post-3568","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nginx","tag-linux","tag-nginx","tag-web-server"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=3568"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3568\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/2750"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=3568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=3568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=3568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}