{"id":1787,"date":"2020-07-30T13:30:00","date_gmt":"2020-07-30T10:30:00","guid":{"rendered":"https:\/\/www.virtono.com\/community\/?p=1787"},"modified":"2020-07-26T19:03:26","modified_gmt":"2020-07-26T16:03:26","slug":"how-to-install-postgresql-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-postgresql-on-centos-7\/","title":{"rendered":"How to Install PostgreSQL on CentOS 7"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In my experience I have found that Postgres has proved to the be most reliable relational database platform. This is largely based on the fact that is open source and the community is huge. It is scalable across platforms and is a widely used and well-loved tool. In this tutorial, we\u2019ll show you how to install PostgreSQL on CentOS 7!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">PostgreSQL uses SQL for relational queries and JSON for non-relational queries. Being open source means that a lot of developers contribute to this utility\u2019s growth.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">PostgreSQL is extremely simple to start using and master.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Here we will demonstrate how to install PostgreSQL on CentOS 7.<\/strong><\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Now there are two ways to do it:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>First, using CentOS repos.<\/li><li>Second, Postgres repos.<\/li><\/ul>\n<\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>First Method \u2013 Install PostgreSQL on CentOS 7 using the CentOS repositories<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The CentOS 7 repository contains PostgreSQL. Note that it may not have the latest version of PostgreSQL. At the time of writing the repository hosts PostgreSQL version 9.2.15.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. Install PostgreSQL on CentOS 7<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On your CentOS Terminal run the commands mentioned below:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>yum -y install postgresql<\/p><p>yum -y install postgresql-contrib<\/p><p>yum -y install postgresql-server<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">This might take some time to complete.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After execution is completed check the postgres version that is installed on your system. Using<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>postgres -V<\/p><\/blockquote>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"257\" height=\"41\" data-attachment-id=\"1788\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-postgresql-on-centos-7\/attachment\/image-13\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/image-13.png?fit=257%2C41&amp;ssl=1\" data-orig-size=\"257,41\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-13\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/image-13.png?fit=257%2C41&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/image-13.png?resize=257%2C41&#038;ssl=1\" alt=\"\" class=\"wp-image-1788\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">As you can see the version installed on my system is Postgres 9.2.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. Initialize the Database<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once the installation is done, you can initialize the database using the below command:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>postgresql-setup initdb<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>4. Start the Database<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After initializing the database, you can start the database using:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>systemctl start postgresql<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>5. (Optional) Enable PostgreSQL<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This completes our database installation and initialization. If required you can configure PostgreSQL to start on every system reboot automatically.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>systemctl enable postgresql<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Second Method &nbsp;\u2013 Install PostgreSQL on CentOS 7 using the PostgreSQL repository<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using this method you are in better control of which exact Postgres version you want to install on your system and also get the latest Postgres installed if needed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. Download PostgreSQL using wget<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open the officical PostgresSQL <a href=\"https:\/\/www.postgresql.org\/download\/linux\/redhat\/\" target=\"_blank\" rel=\"noopener\">download page<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. Select your desired Postgres version and your Linux Distro.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"269\" data-attachment-id=\"1789\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-postgresql-on-centos-7\/attachment\/image-14\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/image-14.png?fit=602%2C269&amp;ssl=1\" data-orig-size=\"602,269\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-14\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/image-14.png?fit=602%2C269&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/image-14.png?resize=602%2C269&#038;ssl=1\" alt=\"\" class=\"wp-image-1789\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/image-14.png?w=602&amp;ssl=1 602w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/image-14.png?resize=300%2C134&amp;ssl=1 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. Run the commands from the script provided by Postgres Download Page.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can either run the individual commands from the script OR create a small executable script on your machine and run it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>OR<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can take this slightly modified script that will not prompt you during installation, set the system path and install some additional libraries<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>#!\/bin\/sh<\/p><p># Install the repository RPM:<\/p><p>yum -y install https:\/\/download.postgresql.org\/pub\/repos\/yum\/reporpms\/EL-7-x86_64\/pgdg-redhat-repo-latest.noarch.rpm<\/p><p># Install PostgreSQL:<\/p><p>yum -y install postgresql12<\/p><p>yum -y install postgresql12-server<\/p><p>yum -y install postgresql12-contrib<\/p><p># Optionally initialize the database and enable automatic start:<\/p><p>\/usr\/pgsql-12\/bin\/postgresql-12-setup initdb<\/p><p>systemctl enable postgresql-12<\/p><p>systemctl start postgresql-12<\/p><p>#Setting path<\/p><p>export PATH=\/usr\/pgsql-12\/bin:$PATH<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>4. Create a new script<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Create a new file and open it using vim<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>vi postgres_install.sh<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>5. Copy the contents from the web page to your file<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"138\" data-attachment-id=\"1790\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-postgresql-on-centos-7\/attachment\/image-15\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/image-15.png?fit=602%2C138&amp;ssl=1\" data-orig-size=\"602,138\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-15\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/image-15.png?fit=602%2C138&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/image-15.png?resize=602%2C138&#038;ssl=1\" alt=\"\" class=\"wp-image-1790\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/image-15.png?w=602&amp;ssl=1 602w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/image-15.png?resize=300%2C69&amp;ssl=1 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>6. Make the script executable<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>chmod a+x postgres_install.sh<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>7. Run script<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">From the directory where the script is located run<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>.\/postgres_install.sh<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">If you used the script from Postgres official site<strong> <\/strong>you will be prompted multiple times during installation, type \u2018y\u2019 and press enter.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>8. Check installation<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using postgres -V check the installed version<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"244\" height=\"33\" data-attachment-id=\"1792\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-postgresql-on-centos-7\/attachment\/image-17\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/image-17.png?fit=244%2C33&amp;ssl=1\" data-orig-size=\"244,33\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-17\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/image-17.png?fit=244%2C33&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/image-17.png?resize=244%2C33&#038;ssl=1\" alt=\"\" class=\"wp-image-1792\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you can see the above messages it means that you have successfully installed Postgres on your system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Cheers! See you in the next one.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my experience I have found that Postgres has proved to the be most reliable relational database platform. This is largely based on the fact that is open source and the community is huge. It is scalable across platforms and is a widely used and well-loved tool. In this tutorial,<\/p>\n","protected":false},"author":4,"featured_media":1794,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[5,3],"tags":[],"class_list":["post-1787","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledgebase","category-tutorial-how-to"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/1_PY24xlr4TpOkXW04HUoqrQ.jpeg?fit=800%2C400&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7ISfL-sP","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":3752,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-postgresql-on-ubuntu-22-04\/","url_meta":{"origin":1787,"position":0},"title":"How to install PostgreSQL on Ubuntu 22.04","author":"George B.","date":"August 21, 2023","format":false,"excerpt":"This tutorial will take you step-by-step through the installation of PostgreSQL on Ubuntu 22.04, explaining all necessary setup steps along the way. It will also show you how to create and manage your first PostgreSQL database. PostgreSQL, also known as Postgres, is an open-source relational database management system (RDBMS) that\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/08\/How-to-install-PostgreSQL-on-Ubuntu-22.04.png?fit=360%2C240&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3655,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-deploy-postgresql-on-k3s\/","url_meta":{"origin":1787,"position":1},"title":"How to Deploy PostgreSQL on K3s","author":"George B.","date":"July 26, 2023","format":false,"excerpt":"This guide will provide a detailed walkthrough on how to deploy PostgreSQL on K3s cluster. Everything will be covered, from the necessary steps to the deployment procedure, testing, and connection to the PostgreSQL database. K3s is a certified, lightweight Kubernetes distribution designed for the Internet of Things and edge computing.\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/07\/How-to-Deploy-PostgreSQL-on-K3s.png?fit=360%2C240&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3665,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-deploy-postgres-high-availability-on-kubernetes\/","url_meta":{"origin":1787,"position":2},"title":"How to Deploy Postgres High Availability on Kubernetes","author":"George B.","date":"July 28, 2023","format":false,"excerpt":"We will cover the deployment of Postgres High Availability (HA) on K3s in great detail in this article. We'll go over the requirements, detailed instructions, and troubleshooting advice. You'll have a reliable, scalable, and highly available Postgres setup on your K3s cluster by the end of this guide. PostgreSQL, also\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/07\/Deploy-Postgres-HA-on-Kubernetes.png?fit=360%2C240&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1124,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/installing-zabbix-3-0-on-ubuntu-16-04-with-postgresql\/","url_meta":{"origin":1787,"position":3},"title":"Installing zabbix 3.0 on Ubuntu 16.04 with PostgreSQL","author":"Shreyash Sharma","date":"October 15, 2017","format":false,"excerpt":"A few days ago I installed Zabbix 3.0 under Ubuntu 16.04.\u00a0Since I would like to deal with PostgreSQL, I decided to use it as a database. installation The first release of Zabbix's release package is the following: 1 wget http:\/\/repo.zabbix.com\/zabbix\/3.0\/ubuntu\/pool\/main\/z\/zabbix-release\/zabbix-release_3.0-1+xenial_all.deb which is then installed 1 dpkg -i zabbix-release_3.0-1+xenial_all.deb So now\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2877,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-cwp-centos-web-panel-on-centos-8\/","url_meta":{"origin":1787,"position":4},"title":"How to install CWP (CentOS Web Panel) on Centos 8","author":"George B.","date":"July 28, 2022","format":false,"excerpt":"What Is CWP? CentOS Web Panel (CWP) is a web hosting control panel. It's a no-cost alternative to cPanel. It has an easy-to-use interface and a variety of other features for beginners who want to set up and manage hosting servers. Using CWP is simple and convenient because you don't\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/Screenshot-2022-07-21-at-16.19.14.png?fit=1057%2C704&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/Screenshot-2022-07-21-at-16.19.14.png?fit=1057%2C704&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/Screenshot-2022-07-21-at-16.19.14.png?fit=1057%2C704&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/Screenshot-2022-07-21-at-16.19.14.png?fit=1057%2C704&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/Screenshot-2022-07-21-at-16.19.14.png?fit=1057%2C704&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":3255,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-nagios-on-centos-7\/","url_meta":{"origin":1787,"position":5},"title":"How to install Nagios on CentOS 7","author":"George B.","date":"April 16, 2023","format":false,"excerpt":"In this article, we will discuss how to install Nagios on CentOS 7. Nagios is a powerful monitoring system that can help you keep track of your network resources, services, and applications. Before we begin, make sure that you have root access to the server you will be installing Nagios.\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/How-to-install-Nagios-on-CentOS.png?fit=600%2C330&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/How-to-install-Nagios-on-CentOS.png?fit=600%2C330&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/How-to-install-Nagios-on-CentOS.png?fit=600%2C330&ssl=1&resize=525%2C300 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/1787","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/comments?post=1787"}],"version-history":[{"count":1,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/1787\/revisions"}],"predecessor-version":[{"id":1793,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/1787\/revisions\/1793"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media\/1794"}],"wp:attachment":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media?parent=1787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/categories?post=1787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/tags?post=1787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}