{"id":52,"date":"2014-09-22T01:45:00","date_gmt":"2014-09-22T01:45:00","guid":{"rendered":"http:\/\/onlinelab.info\/2014\/09\/22\/how-to-install-nginx-on-centos-7\/"},"modified":"2014-09-22T01:45:00","modified_gmt":"2014-09-22T01:45:00","slug":"how-to-install-nginx-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.asianux.org.vn\/index.php\/2014\/09\/22\/how-to-install-nginx-on-centos-7\/","title":{"rendered":"How To Install Nginx on CentOS 7"},"content":{"rendered":"<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/4.bp.blogspot.com\/-qvuSoBi20tI\/VB9_KdhccpI\/AAAAAAAABV8\/i0BzFy4j5nY\/s1600\/Screenshot_4.png\" style=\"margin-left: 1em; margin-right: 1em;\" target=\"_blank\" rel=\"noopener\"><br \/><\/a><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/3.bp.blogspot.com\/-KH4oyTdiobI\/VB9-zMe8YqI\/AAAAAAAABVs\/6vJSEmhrygo\/s1600\/Screenshot_2.png\" style=\"margin-left: 1em; margin-right: 1em;\" target=\"_blank\" rel=\"noopener\"><br \/><\/a><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/4.bp.blogspot.com\/-RgpLndLqde8\/VB9-n6eHTdI\/AAAAAAAABVk\/88tIuQiuNk4\/s1600\/Screenshot_1.png\" style=\"margin-left: 1em; margin-right: 1em;\" target=\"_blank\" rel=\"noopener\"><br \/><\/a><\/div>\n<h3 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #2d2d2d; float: left; font-family: proxima-nova, sans-serif; font-size: 22px; font-style: normal; font-variant: normal; font-weight: 700; letter-spacing: -0.5px; margin: 14px 0px 11px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 745px; word-spacing: 0px;\">About Nginx<\/h3>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: proxima-nova, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28.5px; margin: 0px 0px 28px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Nginx is a high performance web server software. It is a much more flexible and lightweight program than Apache HTTP Server.<\/div>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: proxima-nova, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28.5px; margin: 0px 0px 28px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">This tutorial will teach you how to install and start Nginx on your CentOS 7 server.<\/div>\n<h2 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #2d2d2d; font-family: proxima-nova, sans-serif; font-size: 27px; font-style: normal; font-variant: normal; font-weight: 800; letter-spacing: 0.2px; margin: 14px 0px 10px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Prerequisites<\/h2>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: proxima-nova, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28.5px; margin: 0px 0px 28px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">The steps in this tutorial require the user to have root privileges. You can see how to set that up by following steps 3 and 4 in the<span>&nbsp;<\/span><a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/initial-server-setup-with-centos-7\" style=\"border-bottom-color: black; border-bottom-style: dotted; border-bottom-width: 1px; color: black; text-decoration: none;\" target=\"_blank\" rel=\"noopener\">Initial Server Setup with CentOS 7<\/a><span>&nbsp;<\/span>tutorial.<\/div>\n<h2 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #2d2d2d; font-family: proxima-nova, sans-serif; font-size: 27px; font-style: normal; font-variant: normal; font-weight: 800; letter-spacing: 0.2px; margin: 14px 0px 10px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Step One\u2014Add Nginx Repository<\/h2>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: proxima-nova, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28.5px; margin: 0px 0px 28px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">To add the CentOS 7 Nginx yum repository, open terminal and use the following command:<\/div>\n<p><a href=\"http:\/\/4.bp.blogspot.com\/-RgpLndLqde8\/VB9-n6eHTdI\/AAAAAAAABVk\/88tIuQiuNk4\/s1600\/Screenshot_1.png\" style=\"margin-left: 1em; margin-right: 1em;\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/4.bp.blogspot.com\/-RgpLndLqde8\/VB9-n6eHTdI\/AAAAAAAABVk\/88tIuQiuNk4\/s1600\/Screenshot_1.png\" height=\"70\" width=\"640\" alt=\"\" title=\"\"><\/a><\/p>\n<h2 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #2d2d2d; font-family: proxima-nova, sans-serif; font-size: 27px; font-style: normal; font-variant: normal; font-weight: 800; letter-spacing: 0.2px; margin: 14px 0px 10px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Step Two\u2014Install Nginx<\/h2>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: proxima-nova, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28.5px; margin: 0px 0px 28px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Now that the Nginx repository is installed on your server, install Nginx using the following<code style=\"background-color: #f6f6f6; border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; border-top-left-radius: 2px; border-top-right-radius: 2px; color: #111111; font-family: monospace, serif; font-size: 15px; margin: 0px 3px; padding: 3px;\">yum<\/code><span>&nbsp;<\/span>command:<\/div>\n<p><a href=\"http:\/\/3.bp.blogspot.com\/-KH4oyTdiobI\/VB9-zMe8YqI\/AAAAAAAABVs\/6vJSEmhrygo\/s1600\/Screenshot_2.png\" style=\"margin-left: 1em; margin-right: 1em;\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/3.bp.blogspot.com\/-KH4oyTdiobI\/VB9-zMe8YqI\/AAAAAAAABVs\/6vJSEmhrygo\/s1600\/Screenshot_2.png\" height=\"532\" width=\"640\" alt=\"\" title=\"\"><\/a><\/p>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: proxima-nova, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28.5px; margin: 0px 0px 28px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">After you answer yes to the prompt, Nginx will finish installing on your virtual private server (VPS).<\/div>\n<h2 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #2d2d2d; font-family: proxima-nova, sans-serif; font-size: 27px; font-style: normal; font-variant: normal; font-weight: 800; letter-spacing: 0.2px; margin: 14px 0px 10px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Step Three\u2014Start Nginx<\/h2>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: proxima-nova, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28.5px; margin: 0px 0px 28px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Nginx does not start on its own. To get Nginx running, type:<\/div>\n<pre style=\"-webkit-text-stroke-width: 0px; background-color: #f6f6f6; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; box-sizing: border-box; color: black; display: block; font-family: monospace, serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 0px 0px 28px; orphans: auto; overflow: auto !important; padding: 13px 17px; text-align: start; text-indent: 0px; text-transform: none; white-space: pre !important; widows: auto; word-spacing: 0px; word-wrap: normal\n !important;\"><code style=\"background-color: #f6f6f6; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; color: #111111; font-family: monospace, serif; font-size: 14px; margin: 0px; padding: 0px;\">systemctl start nginx.service<br \/><\/code><\/pre>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: proxima-nova, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28.5px; margin: 0px 0px 28px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">You can do a spot check right away to verify that everything went as planned by visiting your server&#8217;s public IP address in your web browser (see the note under the next heading to find out what your public IP address is if you do not have this information already):<\/div>\n<pre style=\"-webkit-text-stroke-width: 0px; background-color: #f6f6f6; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; box-sizing: border-box; color: black; display: block; font-family: monospace, serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 0px 0px 28px; orphans: auto; overflow: auto !important; padding: 13px 17px; text-align: start; text-indent: 0px; text-transform: none; white-space: pre !important; widows: auto; word-spacing: 0px; word-wrap: normal !important;\"><code style=\"background-color: #f6f6f6; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; color: #111111; font-family: monospace, serif; font-size: 14px; margin: 0px; padding: 0px;\">http:\/\/<span style=\"background: none; color: #de3939;\">server_domain_name_or_IP<\/span>\/<br \/><\/code><\/pre>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: proxima-nova, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28.5px; margin: 0px 0px 28px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Example<\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/3.bp.blogspot.com\/-ZIgiEwrYTho\/VB9--8mGQWI\/AAAAAAAABV0\/cipFsHwHDdo\/s1600\/Screenshot_3.png\" style=\"margin-left: 1em; margin-right: 1em;\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/3.bp.blogspot.com\/-ZIgiEwrYTho\/VB9--8mGQWI\/AAAAAAAABV0\/cipFsHwHDdo\/s1600\/Screenshot_3.png\" height=\"94\" width=\"320\" alt=\"\" title=\"\"><\/a><\/div>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: proxima-nova, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28.5px; margin: 0px 0px 28px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">&nbsp;<\/div>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: proxima-nova, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28.5px; margin: 0px 0px 28px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">You will see the default CentOS 7 Nginx web page, which is there for informational and testing purposes. It should look something like this:<\/div>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: proxima-nova, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28.5px; margin: 0px 0px 28px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\"><img decoding=\"async\" alt=\"CentOS 7 Nginx Default\" src=\"https:\/\/assets.digitalocean.com\/articles\/lemp_1404\/nginx_default.png\" style=\"border: 0px; height: auto; max-width: 100%;\" title=\"\"><\/div>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: proxima-nova, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28.5px; margin: 0px 0px 28px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">If you see this page, then your web server is now correctly installed.<\/div>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: proxima-nova, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28.5px; margin: 0px 0px 28px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Before continuing, you will probably want to enable Nginx to start when your system boots. To do so, enter the following command:<\/div>\n<pre style=\"-webkit-text-stroke-width: 0px; background-color: #f6f6f6; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; box-sizing: border-box; color: black; display: block; font-family: monospace, serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 0px 0px 28px; orphans: auto; overflow: auto !important; padding: 13px 17px; text-align: start; text-indent: 0px; text-transform: none; white-space: pre !important; widows: auto; word-spacing: 0px; word-wrap: normal !important;\"><code style=\"background-color: #f6f6f6; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; color: #111111; font-family: monospace, serif; font-size: 14px; margin: 0px; padding: 0px;\">sudo systemctl enable nginx.service<br \/><\/code><\/pre>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: proxima-nova, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28.5px; margin: 0px 0px 28px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Congratulations! Nginx is now installed and running!<\/div>\n<h3 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #2d2d2d; float: left; font-family: proxima-nova, sans-serif; font-size: 22px; font-style: normal; font-variant: normal; font-weight: 700; letter-spacing: -0.5px; margin: 14px 0px 11px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 745px; word-spacing: 0px;\">How To Find Your Server&#8217;s Public IP Address<\/h3>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: proxima-nova, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28.5px; margin: 0px 0px 28px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">You can run the following command to reveal your server\u2019s public IP address:<\/div>\n<p><a href=\"http:\/\/4.bp.blogspot.com\/-qvuSoBi20tI\/VB9_KdhccpI\/AAAAAAAABV8\/i0BzFy4j5nY\/s1600\/Screenshot_4.png\" style=\"margin-left: 1em; margin-right: 1em;\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/4.bp.blogspot.com\/-qvuSoBi20tI\/VB9_KdhccpI\/AAAAAAAABV8\/i0BzFy4j5nY\/s1600\/Screenshot_4.png\" height=\"66\" width=\"640\" alt=\"\" title=\"\"><\/a><\/p>\n<h2 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #2d2d2d; font-family: proxima-nova, sans-serif; font-size: 27px; font-style: normal; font-vari\nant: normal; font-weight: 800; letter-spacing: 0.2px; margin: 14px 0px 10px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Server Root and Configuration<\/h2>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: proxima-nova, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28.5px; margin: 0px 0px 28px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">If you want to start serving your own pages or application through Nginx, you will want to know the locations of the Nginx configuration files and default server root directory.<\/div>\n<h3 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #2d2d2d; float: left; font-family: proxima-nova, sans-serif; font-size: 22px; font-style: normal; font-variant: normal; font-weight: 700; letter-spacing: -0.5px; margin: 14px 0px 11px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 745px; word-spacing: 0px;\">Default Server Root<\/h3>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: proxima-nova, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28.5px; margin: 0px 0px 28px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">The default server root directory is<span>&nbsp;<\/span><code style=\"background-color: #f6f6f6; border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; border-top-left-radius: 2px; border-top-right-radius: 2px; color: #111111; font-family: monospace, serif; font-size: 15px; margin: 0px 3px; padding: 3px;\">\/usr\/share\/nginx\/html<\/code>. Files that are placed in there will be served on your web server. This location is specified in the default server block configuration file that ships with Nginx, which is located at<code style=\"background-color: #f6f6f6; border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; border-top-left-radius: 2px; border-top-right-radius: 2px; color: #111111; font-family: monospace, serif; font-size: 15px; margin: 0px 3px; padding: 3px;\">\/etc\/nginx\/conf.d\/default.conf<\/code>.<\/div>\n<h3 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #2d2d2d; float: left; font-family: proxima-nova, sans-serif; font-size: 22px; font-style: normal; font-variant: normal; font-weight: 700; letter-spacing: -0.5px; margin: 14px 0px 11px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 745px; word-spacing: 0px;\">Server Block Configuration<\/h3>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: proxima-nova, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28.5px; margin: 0px 0px 28px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Any additional server blocks (known as Virtual Hosts in Apache) by creating new configuration files in<span>&nbsp;<\/span><code style=\"background-color: #f6f6f6; border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; border-top-left-radius: 2px; border-top-right-radius: 2px; color: #111111; font-family: monospace, serif; font-size: 15px; margin: 0px 3px; padding: 3px;\">\/etc\/nginx\/conf.d<\/code>. Files that end with<span>&nbsp;<\/span><code style=\"background-color: #f6f6f6; border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; border-top-left-radius: 2px; border-top-right-radius: 2px; color: #111111; font-family: monospace, serif; font-size: 15px; margin: 0px 3px; padding: 3px;\">.conf<\/code><span>&nbsp;<\/span>in that directory will be loaded when Nginx is started.<\/div>\n<h3 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #2d2d2d; float: left; font-family: proxima-nova, sans-serif; font-size: 22px; font-style: normal; font-variant: normal; font-weight: 700; letter-spacing: -0.5px; margin: 14px 0px 11px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 745px; word-spacing: 0px;\">Nginx Global Configuration<\/h3>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: proxima-nova, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28.5px; margin: 0px 0px 28px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">The main Nginx configuration file is located at<span>&nbsp;<\/span><code style=\"background-color: #f6f6f6; border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; border-top-left-radius: 2px; border-top-right-radius: 2px; color: #111111; font-family: monospace, serif; font-size: 15px; margin: 0px 3px; padding: 3px;\">\/etc\/nginx\/nginx.conf<\/code>. This is where you can change settings like the user that runs the Nginx daemon processes, and the number of worker processes that get spawned when Nginx is running, among other things.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>About Nginx Nginx is a high performance web server software. It is a much more flexible and lightweight program than Apache HTTP Server. This tutorial will teach you how to install and start Nginx on&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-52","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/52","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/comments?post=52"}],"version-history":[{"count":0,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/52\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/media?parent=52"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/categories?post=52"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/tags?post=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}