AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Redhat install postgres10/30/2023 Vendor : PostgreSQL Global Development Group View package details with: $ rpm -qi pgdg-redhat-repo It can be added to CentOS / RHEL 8 system by running the command below: sudo dnf -y install The PostgreSQL Yum Repository will integrate with your normal systems and patch management, and provide automatic updates for all supported versions of PostgreSQL throughout the support lifetime of PostgreSQL. We’ll add PostgreSQL Yum Repository which hosts all recent releases. That’s all from this post, please do post your queries and feedback on below comments section.The version of PostgreSQL available on CentOS 8 / RHEL 8 officially maintained modular repository is 10 and 9.6. Perfect, above output confirms that postgres user and database is secure now. This time it should prompt you to enter password first, $ su - postgres Let’s try to switch to postgres user and connect to database. $ psql -c "ALTER USER postgres WITH PASSWORD ‘xxxxxxxxxxx' " Now to secure database, set password to postgres user using passwd command. 5) Securing PostgreSQL 15 Databaseīy default, postgresql database is not secure, one can easily switch to postgres user without any password and start using psql as shown below: To verify its service status, run $ sudo systemctl status postgresql-15Ībove output shows that postgresql service is up and running. Run the following systemctl commands to start and enable postgresql 15 service. To initialize PostgreSQL 15 initdb database, run $ sudo /usr/pgsql-15/bin/postgresql-15-setup initdb 3) Initialize PostgreSQL Database (initdb) Now, let initialize its database in the next step. $ psql -VĪbove command’s output shows PostgreSQL 15.1 is installed on the system. Once postgresql and it’s dependencies are installed, verify its version using following psql command. $ sudo dnf install postgresql15-server -y In step 1, we have already configured PostgreSQL 15 package repository, so to install it, run the beneath dnf command. So, let’s first enable its DNF/yum package repository using following dnf command. PostgreSQL 15 is not available in the default package repositories of RHEL 9. 1) Enable PostgreSQL 15 Package Repository
0 Comments
Read More
Leave a Reply. |