Last active
November 4, 2022 22:16
-
-
Save coder4web/13419dbfe7c22dc5bad8bb4e135138bc to your computer and use it in GitHub Desktop.
PostgreSQL install and setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RedHat-based | |
# https://www.postgresql.org/download/linux/redhat/ | |
yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm | |
yum install postgresql12 postgresql12-server | |
/usr/pgsql-12/bin/postgresql-12-setup initdb | |
systemctl enable postgresql-12 | |
systemctl start postgresql-12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment