浏览代码

postgres install info extended

mom040267 10 年之前
父节点
当前提交
7ee0681fd4
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      INSTALL

+ 6 - 1
INSTALL

@@ -856,7 +856,12 @@ connection string format.
 
 
 Below are the steps to setup the PostgreSQL database server from scratch:
 Below are the steps to setup the PostgreSQL database server from scratch:
 
 
-1) Install PostgreSQL server.
+1) Install PostgreSQL server. After the installation, do not forget to
+initialize the postgres root database directory:
+
+	$ sudo bash
+	$ su -l pgsql
+	$ initdb -D /usr/local/pgsql/data
 
 
 2) Find and edit Postgres' pg_hba.conf file to set the access options 
 2) Find and edit Postgres' pg_hba.conf file to set the access options 
 (see docs). On different systems, it may be located in different places.
 (see docs). On different systems, it may be located in different places.