![]() If you require a specific minor release of PostgreSQL, you must obtain the source code from the PostgreSQL Downloads Page. Loaded: loaded (/usr/lib/systemd/system/rvice enabled vendor preset: disabled)Īctive: active (running) since Tue 15:04:45 UTC 1min 9s ago This returns a summary of the application’s status. Verify if the PostgreSQL service is active with systemctl. ( Optional) If you want PostgreSQL to automatically launch upon system boot-up, register it with systemctl. To initialize the database, run the following command: sudo postgresql-13-setup initdb ![]() PostgreSQL is not automatically initialized or enabled on CentOS platforms. sudo dnf install -y postgresql13-server postgresql13-contrib The following command installs PostgreSQL version 13. Use the new repository to install PostgreSQL along with the optional postgresql-contrib component, which many users find convenient. dnf install -y ĭisable the built-in CentOS module. Update and upgrade the existing packages. You can also choose to install an earlier release of PostgreSQL. At the time of writing this guide, the version of PostgreSQL is 13.1. The instructions below show you how to install the most recent stable version of PostgreSQL. If you want to choose a more specific version of PostgreSQL, you can install it from the PostgreSQL yum repository. Install PostgreSQL From the PostgreSQL Yum Repository ![]() Loaded: loaded (/usr/lib/systemd/system/rvice enabled vendor preset: disabled)Īctive: active (running) since Tue 14:04:08 UTC 41s ago systemctl status rviceĬentOS returns the status of the PostgreSQL service which should display as active (running). sudo systemctl enable rviceĬonfirm PostgreSQL is running by verifying its status in systemctl. ( Optional) You can configure PostgreSQL to automatically launch upon system boot-up with the systemctl enable directive. You must first run the following command: sudo postgresql-setup -initdb sudo yum install postgresql-server postgresql-contribĬentOS does not automatically initialize or enable PostgreSQL. Install PostgreSQL and all dependencies, as well the postgresql-contrib component, which provides a set of useful extensions. Use yum to update and upgrade the existing CentOS packages. This procedure installs the version of PostgreSQL that is included with the CentOS packages (currently version 10.15). If you do not require the absolute latest version of PostgreSQL, you can easily install it using the CentOS package installation program yum. Install PostgreSQL Install the Latest Version of PostgreSQL From the CentOS Packages
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |