{"id":71,"date":"2017-07-05T19:10:40","date_gmt":"2017-07-05T07:10:40","guid":{"rendered":"https:\/\/content.ronella.xyz\/apps\/wordpress\/?p=71"},"modified":"2017-07-05T19:11:41","modified_gmt":"2017-07-05T07:11:41","slug":"installing-nginx-in-ubuntu","status":"publish","type":"post","link":"https:\/\/www.ronella.xyz\/?p=71","title":{"rendered":"Installing Nginx in Ubuntu"},"content":{"rendered":"<p>Nginx is a lightweight HTTP server, reverse proxy and email proxy server.<\/p>\n<h3>Pre-requisite<\/h3>\n<ul>\n<li>Already running Ubuntu platform.<\/li>\n<\/ul>\n<h3>Procedure<\/h3>\n<ol>\n<li><strong>Sign-in to your machine<\/strong> with the non-root user but a sudoer.<\/li>\n<li><strong>Install Nginx<\/strong> with the following command <strong>using the terminal<\/strong>:\n<pre>sudo apt-get install nginx<\/pre>\n<\/li>\n<li>When you are asked\u00a0<span style=\"color: #000000;\"><strong>Do you want to continue [Y\/n]?<\/strong><\/span> press <strong>Enter and wait for it complete<\/strong>.<\/li>\n<\/ol>\n<h3>Validation<\/h3>\n<p>On the terminal run the following command:<\/p>\n<pre>curl http:\/\/localhost<\/pre>\n<p>If the installation was successful you will see \u00a0something similar to the following output:<br \/>\n<a href=\"https:\/\/www.ronella.xyz\/wordpress\/wp-content\/uploads\/2017\/07\/nginx-curl-test-output.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-73\" src=\"https:\/\/www.ronella.xyz\/wordpress\/wp-content\/uploads\/2017\/07\/nginx-curl-test-output.png\" alt=\"\" width=\"536\" height=\"227\" \/><\/a><\/p>\n<p>If the output is not similar to the output above, most probably that the <strong>Nginx was not started<\/strong> after the installation. To start it, use the following command and repeat the <strong>curl command<\/strong>:<\/p>\n<pre>sudo service nginx start<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Nginx is a lightweight HTTP server, reverse proxy and email proxy server. Pre-requisite Already running Ubuntu platform. Procedure Sign-in to your machine with the non-root user but a sudoer. Install Nginx with the following command using the terminal: sudo apt-get install nginx When you are asked\u00a0Do you want to continue [Y\/n]? press Enter and wait [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12],"tags":[],"_links":{"self":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/71"}],"collection":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=71"}],"version-history":[{"count":3,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions"}],"predecessor-version":[{"id":75,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions\/75"}],"wp:attachment":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}