{"id":713,"date":"2020-11-11T20:00:51","date_gmt":"2020-11-11T20:00:51","guid":{"rendered":"http:\/\/www.ishygddt.xyz\/~blog\/?p=713"},"modified":"2021-07-17T18:21:18","modified_gmt":"2021-07-17T18:21:18","slug":"installing-nginx-on-centos-8","status":"publish","type":"post","link":"http:\/\/www.ishygddt.xyz\/~blog\/2020\/11\/installing-nginx-on-centos-8","title":{"rendered":"Installing NGINX on CentOS 8"},"content":{"rendered":"<ul>\n<li><code class=\"language-shell\" data-line=\"\">sudo dnf config-manager --add-repo &quot;http:\/\/nginx.org\/packages\/$(. \/etc\/os-release;echo $ID)\/$(rpm -E &quot;%{$(. \/etc\/os-release;echo $ID)}\/%{_arch}&quot;)&quot; &amp;&amp; echo &#039;gpgkey=https:\/\/nginx.org\/keys\/nginx_signing.key&#039; | sudo tee -a \/etc\/yum.repos.d\/nginx*.repo<\/code><\/li>\n<li><code class=\"language-shell\" data-line=\"\">sudo dnf install nginx<\/code><\/li>\n<li><code class=\"language-shell\" data-line=\"\">echo &#039;include \/etc\/nginx\/sites-enabled\/*;&#039; | sudo tee \/etc\/nginx\/conf.d\/sites.conf<\/code><\/li>\n<li><code class=\"language-shell\" data-line=\"\">sudo mkdir -v \/etc\/nginx\/sites-{enabled,available}<\/code><\/li>\n<li><code class=\"language-shell\" data-line=\"\">sudo systemctl enable --now nginx<\/code><\/li>\n<li><code class=\"language-shell\" data-line=\"\">sudo firewall-cmd --add-service=http --add-service=https --permanent<\/code><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Installing NGINX on RHEL-spectrum systems, from the official repo <code class=\"\" data-line=\"\">http:\/\/nginx.org\/packages\/${distro}\/${distrorel}\/${arch}<\/code><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[46,47],"class_list":["post-713","post","type-post","status-publish","format-standard","hentry","category-drafts","tag-installation","tag-nginx"],"_links":{"self":[{"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/posts\/713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/comments?post=713"}],"version-history":[{"count":10,"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/posts\/713\/revisions"}],"predecessor-version":[{"id":1326,"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/posts\/713\/revisions\/1326"}],"wp:attachment":[{"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/media?parent=713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/categories?post=713"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/tags?post=713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}