首页 > 开发 > 综合 > 正文

PostgreSQL (install and run)

2024-07-21 02:13:48
字体:
来源:转载
供稿:网友

最大的网站源码资源下载站,

  run and test passed on redhat 9.0

  postgresql can not run in root user.

  command line:

  #useradd postgre

  #tar xvfz postgresql_7.1.3.tar.gz

  #cd postgresql_7.1.3

  #./configure –prefix=/usr/local/pgsql

  #make

  #make install

  #chown –r postgre.postgre /usr/local/psql

  #emacs ~postgre/.bash_profile

  add:

  pglib=/usr/local/pgsql/lib

  pgdata=$home/data

  path=$path:/usr/local/pgsql/bin

  manpath=$manpath:/usr/local/pgsql/man

  export pglib pgdata path manpath

  then use postgres user login

  #su – postgre

  create database direct

  #mkdir data

  start database

  #initdb

  $postmaster –i –d ~/data &

  psql –h pgdbs.inf.brad.ac.uk

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表