Rate This Document
Findability
Accuracy
Completeness
Readability

Creating the Data Directory and Assigning Rights

Create a data directory to store PostgreSQL data files.

  1. Create a data directory.
    1
    mkdir /data
    
  2. Change the directory permission:
    1
    chown -R postgres:postgres /data/