1 |
yum install http://yum.postgresql.org/9.6/redhat/rhel-6-x86_64/pgdg-redhat96-9.6-3.noarch.rpm |
1 |
yum install postgresql96-server.x86_64 postgresql96-devel.x86_64 postgresql96.x86_64 |
1 2 |
#add the following to the end of "exclude=" postgresql* |
1 2 |
ln -s /var/lib/pgsql/9.6/data /var/lib/pgsql ln -s /var/lib/pgsql/9.6/backups /var/lib/pgsql |
1 |
/scripts/installpostgres |
1 2 |
cd /usr/pgsql-9.6/bin/; for f in *; do echo $f; [ -e /usr/bin/$f ] && mv /usr/bin/$f /usr/bin/$f.8; ln -s $(pwd)/$f /usr/bin/$f; done cd /var/lib/pgsql; ln -s 9.6/backups; ln -s 9.6/data; ln -s 9.6/pgstartup.log |
1 2 3 |
service postgresql-9.6 initdb chkconfig postgresql-9.6 on /etc/init.d/postgresql-9.6 start |
1 2 3 |
WHM > Configure PostgreSQL > Install Config WHM > Configure PostgreSQL > Create Users WHM > Configure PostgreSQL > Change password (Generate new one) |
1 |
/usr/local/cpanel/bin/updatephppgadmin |
1 |
/etc/init.d/postgresql-9.6 restart |
1 |
postgresql:1 |
1 |
/scripts/restartsrv_tailwatchd |