Copy the contents from the web page to your fileįrom the directory where the script is located run usr/pgsql-12/bin/postgresql-12-setup initdbĥ. # Optionally initialize the database and enable automatic start: You can take this slightly modified script that will not prompt you during installation, set the system path and install some additional libraries You can either run the individual commands from the script OR create a small executable script on your machine and run it. Run the commands from the script provided by Postgres Download Page. Select your desired Postgres version and your Linux Distro.ģ. Open the officical PostgresSQL download page.Ģ. 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. Second Method – Install PostgreSQL on CentOS 7 using the PostgreSQL repository If required you can configure PostgreSQL to start on every system reboot automatically. This completes our database installation and initialization. Once the installation is done, you can initialize the database using the below command:Īfter initializing the database, you can start the database using: UsingĪs you can see the version installed on my system is Postgres 9.2. On your CentOS Terminal run the commands mentioned below:Īfter execution is completed check the postgres version that is installed on your system. At the time of writing the repository hosts PostgreSQL version 9.2.15. Note that it may not have the latest version of PostgreSQL. The CentOS 7 repository contains PostgreSQL. First Method – Install PostgreSQL on CentOS 7 using the CentOS repositories
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |