Creating the Data Directory and Assigning Rights
Create a data directory to store PostgreSQL data files.
- Create a data directory.
1mkdir /data - Change the directory permission:
1chown -R postgres:postgres /data/
Parent topic: Configuring the Installation Environment