install postgresql9.6.3 in redhat 7

来源:互联网 发布:关于人工智能的新闻 编辑:程序博客网 时间:2024/06/14 04:11

1.     download postgresql-9.6.3-3-linux-x64.run

wget https://get.enterprisedb.com/postgresql/postgresql-9.6.3-3-linux-x64.run

2.     add –x permission

chmod u+x postgresql-9.6.3-3-linux-x64.run

3.     create new directory forpostgresql

mkdir –p /data/gerrit/postgresql/

4.     running .run file

./ postgresql-9.6.3-3-linux-x64.run

   Chooseinstalled directory is /data/gerrit/postgrsql, will auto created new pgsql inthis path

   Choosedata as its data directory.