seeseekey.net - Invictus Deus Ex Machina

Möchte man Post­greSQL unter Win­dows instal­lie­ren so muss man erst ein­mal den Instal­ler unter http://www.postgresql.org/download/windows (den One Click Instal­ler) herunterladen.

Sollte es bei der Instal­la­tion zu einem Feh­ler kom­men und im Feh­ler­log irgend­et­was mit VBS erwähnt wer­den, so sollte der Win­dows Script­ing Host (siehe http://de.wikipedia.org/wiki/Windows_Script_Host) nach­in­stal­liert werden.

Ein ande­res Pro­blem kann sein das der ange­legte Nut­zer Postgre nicht genü­gend Rechte auf dem Rech­ter hat. So sollte man ihn ein­fach zum Admi­nis­tra­tor beför­dern und die Instal­la­tion ein wei­te­res Mal lau­fen lassen.

Sollte der Dienst nach der Instal­la­tion nicht star­ten so kann das auf ein Rech­te­pro­blem hin­wei­sen. Dazu sollte man unter Sys­tem­steue­rung -> Ver­wal­tung -> Dienste in die Eigen­schaf­ten des Diens­tes Post­greSQL Ser­ver schauen und unter dem Tab Anmel­den Loka­les Sys­tem­konto anwäh­len und den Rech­ner neu starten.

Läuft der Dienst dann so kann man sich daran machen Post­GIS zu instal­lie­ren. Das ganze macht man über den App­li­ca­tion Stack Buil­der. Dort wählt man Post­GIS aus und lässt sich durch das Setup gelei­ten. Nach der Instal­la­tion sollte man den Rech­ner neustarten.

Ver­sucht man sich nun mit sei­nem Post­greSQL Ser­ver von einer ande­ren Rech­ner zu ver­bin­den (z.B. mit pgAd­min III) so bekommt man fol­gende Feh­ler­mel­dung zu sehen:

Ser­ver doesn’t listen 

The ser­ver doesn’t accept con­nec­tions: the con­nec­tion library reports

could not con­nect to ser­ver: Con­nec­tion refu­sed (0x0000274D/10061) Is the ser­ver run­ning on host „105.106.114.128″ and accep­ting TCP/IP con­nec­tions on port 5433?

If you encoun­ter this mes­sage, please check if the ser­ver you’re try­ing to con­tact is actually run­ning Post­greSQL on the given port. Test if you have net­work con­nec­tivity from your cli­ent to the ser­ver host using ping or equi­va­lent tools. Is your net­work / VPN / SSH tun­nel / fire­wall con­fi­gu­red correctly?

For secu­rity rea­sons, Post­greSQL does not lis­ten on all avail­able IP addres­ses on the ser­ver machine initi­ally. In order to access the ser­ver over the net­work, you need to enable lis­ten­ing on the address first.

For Post­greSQL ser­vers star­ting with ver­sion 8.0, this is con­trol­led using the „listen_addresses“ para­me­ter in the postgresql.conf file. Here, you can enter a list of IP addres­ses the ser­ver should lis­ten on, or sim­ply use ‚*‘ to lis­ten on all avail­able IP addres­ses. For ear­lier ser­vers (Ver­sion 7.3 or 7.4), you’ll need to set the „tcpip_socket“ para­me­ter to ‚true‘.

You can use the postgresql.conf edi­tor that is built into pgAd­min III to edit the postgresql.conf con­fi­gu­ra­tion file. After chan­ging this file, you need to restart the ser­ver pro­cess to make the set­ting effective.

If you double-checked your con­fi­gu­ra­tion but still get this error mes­sage, it’s still unli­kely that you encoun­ter a fatal Post­greSQL mis­be­ha­viour. You pro­bably have some low level net­work con­nec­tivity pro­blems (e.g. fire­wall con­fi­gu­ra­tion). Please check this tho­roughly before reporting a bug to the Post­greSQL community.

Dazu trägt man sich dann in der pg_hba.conf die Zeile

host all all 101.102.103.104/32 md5 

dazu. Natür­lich muss man das ganze mit sei­ner IP Adresse machen (z.B. 192.168.0.0/16 für 192.168.0.0 bis 192.168.255.255) :)

Wei­tere Infor­ma­tio­nen gibt es unter:
http://de.wikipedia.org/wiki/PostgreSQL
http://de.wikipedia.org/wiki/PostGIS

Hinterlasse eine Antwort

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *

*

Du kannst folgende HTML-Tags benutzen: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>