![]() ![]() ![]() On Ubuntu, the cluster is initialized during the installation. So to connect to the PostgreSQL server, log in to your system as user “postgres.” su - postgres To install PostgreSQL on Ubuntu, use the apt-get (or other apt-driving) command: apt-get install postgresql-11ĭuring PostgreSQL installation, by default, it creates a user “postgres” and also creates a system account (Operating System User) with the same name “postgres.” We have added the PostgreSQL official repository to our system, now we need to update the repository list: sudo apt-get update Import the repository signing key and update the package lists: wget -quiet -O - | sudo apt-key add. Create the file “/etc/apt//pgdg.list” and add the corresponding line for the repository in it: sudo sh -c 'echo "deb bionic-pgdg main" > /etc/apt//pgdg.list'Ĥ. For Example:įor Ubuntu 18.04 you should select Bionic (18.04):ģ. Select your version of Ubuntu and copy the corresponding line for the apt repository. ![]() Visit the PostgreSQL Ubuntu download site:Ģ. To use the apt repository according to Ubuntu version, follow these steps:ġ. PostgreSQL packages are available in the default Ubuntu repository, but other versions of PostgreSQL are also available through the PostgreSQL apt repository. Step 1 – Enable the PostgreSQL apt repository This post will help you with installing the PostgreSQL database server on your Ubuntu 18.04, Ubuntu 16.04 and Ubuntu 14.04 systems. Here, we are going to look at how to install PostgreSQL on Ubuntu Server. It goes over four steps for installation: SUMMARY: This article covers how to install PostgreSQL on Ubuntu Server for Linux. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |