最大的网站源码资源下载站,
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
新闻热点
疑难解答