Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
Postgresql
(view source)
Revision as of 09:54, 4 November 2007
610 bytes added
,
09:54, 4 November 2007
no edit summary
Line 34:
Line 34:
exit
exit
−
Edit the file '''/etc/e-smith/templates-custom/var/lib/pgsql/data/postgresql.conf''' and change the following settings:
+
Edit the file '''/etc/e-smith/templates-custom/var/lib/pgsql/data/postgresql.conf'''
remove #
and change the following settings:
superuser_reserved_connections=2
superuser_reserved_connections=2
Line 49:
Line 49:
Edit the file '''/etc/e-smith/templates-custom/var/lib/pgsql/data/pg_hba.conf''' and change the following settings:
Edit the file '''/etc/e-smith/templates-custom/var/lib/pgsql/data/pg_hba.conf''' and change the following settings:
+
+
local all all md5
+
host all all 127.0.0.1/32 md5
+
host all all ::1/128 md5
+
+
and add at the end:
+
+
host all all 0.0.0.0 255.255.255.255 reject
+
+
Add a plus new white line at the end.
+
+
Expand template:
+
+
expand-template /var/lib/pgsql/data/pg_hba.conf
+
expand-template /var/lib/pgsql/data/postgresql.conf
+
+
Restart with new settings:
+
+
/etc/init.d/postgresql stop
+
/etc/init.d/postgresql start
+
+
and add the symlinks to start automatically:
+
+
ln -s /etc/init.d/postgresql /etc/rc.d/rc7.d/S56postgresql
+
ln -s /etc/init.d/postgresql /etc/rc.d/rc6.d/K03postgresql
PicsOne
985
edits
Navigation menu
Page actions
Page
Discussion
View source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
English
Log in
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version
Search