1. Install Remmi Repository wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm 2. Install Postgresql yum --enablerepo=remi install postgresql84 3. Edit the start-up script root@host# vi /etc/rc.d/init.d/postgresql 4.Change the PGDATA and PGLOG variable to wherever you want (changes in red)… # Set defaults for configuration variables PGENGINE=/usr/bin PGPORT=5432 PGDATA=/path/to/pgdata if [ -f "$PGDATA/PG_VERSION" ] && [...]
Fri, 11 Mar 2011 16:31:42 +0000
|