Howto: Debian / Ubuntu Linux Install PostgreSQL Database Server

‮//:sptth‬www.lautturi.com
Howto: Debian / Ubuntu Linux Install PostgreSQL Database Server

To install the PostgreSQL database server on a Debian or Ubuntu Linux machine, follow these steps:

  1. Update the package manager's package list by running the following command:
sudo apt-get update
  1. Install the PostgreSQL server package by running the following command:
sudo apt-get install postgresql
  1. After the installation is complete, the PostgreSQL server should be automatically started. To check if the server is running, run the following command:
service postgresql status

You should see a message indicating that the server is running.

  1. To access the PostgreSQL command-line interface, run the following command:
sudo -u postgres psql

This will open the PostgreSQL command-line interface, where you can create databases, users, and perform other tasks.

Note: The above steps and commands are specific to Debian-based Linux distributions such as Ubuntu. The exact steps and commands may vary slightly depending on your Linux distribution.

Created Time:2017-10-29 22:08:47  Author:lautturi