我要评分
获取效率
正确性
完整性
易理解

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/