Changes between Version 20 and Version 21 of InstallationGuidelines/PostgreSQL
- Timestamp:
- 09/19/10 18:06:48 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallationGuidelines/PostgreSQL
v20 v21 4 4 5 5 == Install PostgreSQL == 6 {{{ 7 apt-get install postgresql-8.4 8 }}} 9 6 10 Enable automatic DB maintenance: 7 11 {{{ 8 12 vim /etc/postgresql/8.4/main/postgresql.conf 13 # Enable remote access 14 listen_addresses = '*' 9 15 port = 5432 10 16 track_counts = on 11 17 autovacuum = on 12 18 19 vim /etc/postgresql/8.4/main/pg_hba.conf 20 host all all my.ip.add.ress/24 md5 21 13 22 /etc/init.d/postgresql restart 23 24 vim /etc/iptables.rules 25 -A INPUT -p tcp --dport 5432 -j ACCEPT 26 27 reboot 14 28 }}} 29 NB Don't do remote access as 'postgres' - to do so means can't simply access psql via 'su postgres' 15 30 16 Install the Admin Pack for enhanced intrumentation:17 {{{18 apt-get install postgresql-contrib-8.419 psql -d postgres -f /usr/share/postgresql/8.4/contrib/adminpack.sql20 }}}21 31 22 32 Adjust postgresql.conf for performance relative to resources available (http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server) … … 71 81 }}} 72 82 73 Allow remote access:83 (Optional) Install the Admin Pack for enhanced intrumentation: 74 84 {{{ 75 passwd postgres 85 apt-get install postgresql-contrib-8.4 86 psql -d postgres -f /usr/share/postgresql/8.4/contrib/adminpack.sql 87 }}} 76 88 77 vim /etc/postgresql/8.4/main/postgresql.conf 78 listen_addresses = '*' 79 80 vim /etc/postgresql/8.4/main/pg_hba.conf 81 host all all my.ip.add.ress/24 md5 82 83 /etc/init.d/postgresql restart 84 85 vim /etc/iptables.rules 86 -A INPUT -p tcp --dport 5432 -j ACCEPT 87 88 reboot 89 }}} 90 (Don't do remote access as 'postgres' - to do so means can't simply access psql via 'su postgres') 91 92 It is possible to install [http://phppgadmin.sourceforge.net PHPPgAdmin] if you want a web-based management tool: 89 (Optional) Install [http://phppgadmin.sourceforge.net PHPPgAdmin] if you want a web-based management tool: 93 90 {{{ 94 91 apt-get install phppgadmin 95 92 }}} 96 97 * [wiki:InstallationGuidelinesGISDataLinux#PostGIS]98 93 == Configure PostgreSQL for Sahana Eden == 99 94 {{{