1. Update all available repository and upgrade all packages to the latest
|
1 2 3 4 |
pkg update pkg upgrade |
2. Install PostgreSQL 13
|
1 2 3 |
pkg install postgresql13-server postgresql13-client |
3. Add the PostgreSQL to the system boot:
|
1 2 3 |
sysrc postgresql_enable=yes |
4. Initialize the PostgreSQL database
|
1 2 3 |
/usr/local/etc/rc.d/postgresql initdb |
5. Start the PostgreSQL service and check its status
|
1 2 3 4 |
service postgresql start service postgresql status |
-EOF-