Fedora安装PostgresSql9

wget http://yum.pgrpms.org/reporpms/9.0/pgdg-fedora-9.0-2.noarch.rpm
rpm -Uvh pgdg-fedora-9.0-2.noarch.rpm
yum makecache
yum -y install postgresql90-server postgresql90 postgresql90-libs postgresql90-contrib postgresql90-devel postgresql90-docs
修改postgresql.conf,pg_hba.conf设置访问权限
chkconfig --level 345 postgresql-9.0 on
service postgresql-9.0 initdb
service postgresql-9.0 start
su - postgres -c 'psql -f /usr/pgsql-9.0/share/contrib/adminpack.sql'

你可能感兴趣的:(sql,C++,c,SQL Server,PostgreSQL)