- Ubuntu
- Package management
- here
Installing postgresql-PostgreSQL server
Let's install "postgresql" so that we can use the PostgreSQL database server. PostgreSQL is a convenient relational database system. Use the apt command.
sudo apt install -y postgresql
Confirm that the PostgreSQL database server is installed
Use the status of the systemctl command to confirm that the PostgreSQL database server has been installed.
systemctl status postgresql
The status is displayed as follows.
● postgresql.service --PostgreSQL RDBMS Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled) Active: active (exited) since Wed 2020-06-03 08:56:27 JST; 11s ago Main PID: 26352 (code = exited, status = 0 / SUCCESS) Tasks: 0 (limit: 9479) CGroup: /system.slice/postgresql.service