webForumDet fria alternativet

Starta PostgreSQL med -i flaggan!

1 svar · 179 visningar · startad av Poppe25

Poppe25Medlem sedan apr. 2002255 inlägg
#1

Sitter med Mac OS X och behöver starta PostgreSQL med -i flaggan. Är fräck och postar med. här, tänker att ni som kan UNIX säkert kan hjälpa mig. Vad jag vill är att implementera en Java-klass, följande kommentar bör förklara saken:

/**
* The TestPostgreSQL class shows how to access the PostgreSQL
* DB server on Mac OS X using the JDBC interface.
* It assumes the installation has been performed according
* to the instructions at http://www.entropy.ch/software/macosx/postgresql.
*
*
* You compile it like this:
*
* % javac TestPostgreSQL.java
*
* Make sure that the PostgreSQL server has been
* started with the -i flag. This is not the case in
* the example lines of the installation instructions mentioned
* above and in the StartupItem package that's available
* from the same location. The -i flag tells the DB server
* to listen for connection requests from the network
* and I have left it off by default for security reasons.
*
* If the server is running correctly (with -i), run the Test like this:
* (in the same directory where you compiled the example)
*
* % java -classpath /usr/local/pgsql/share/java/postgresql.jar:. TestPostgreSQL
*
* You should see the current date as returned by the DB server:
*
* 2001-06-23 16:31:49+02
*
*
* @author Marc Liyanage
* @version 1.0
*/

SirPeterMedlem sedan feb. 200115 571 inlägg
#2

Tråden stängs med hänvisning till den andra tråden.
Var snäll och korsposta inte.

http://www.webforum.nu/showthread.php?s=&threadid=71243

131 ms totalt · 3 externa anrop · v20260731065814-full.0e50b1ef
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
129 ms — hämta tråd, inlägg och bilagor (db)