Ok, Michael! Thanks for your kindly remind!
Regards!
Liu Yuanyuan
--
View this message in context:
http://postgresql.nabble.com/Why-not-to-use-pg-ctl-start-D-data-to-register-posgtresql-windows-service-tp5872282p5872631.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com
Yup, I think I totally understand now, the registered postgres service is
different from "pg_ctl start".
To start the postgres windows service needs privileged prompt (to execute
net or sc command) or manually(start or stop in windows service list).After
the service is started, it can be recog
Hi, Michael!
Thanks for your reply!
I knew that postgresql windows service is made by "pg_ctl register -N
serviceName -D dataPath".
And command from service, like "D:\Program Files
(x86)\PostgreSQL\9.4\bin\pg_ctl.exe" runservice -N "postgres-9.4" -D
"D:\Program Files (x86)\PostgreSQL\9.4\data", c
Hi, Hackers!
Nowadays, I always got problem about postgresql windows service.
I find, postgresql usually use the following command to register windows
services:
/"D:\Program Files (x86)\PostgreSQL\9.4\bin\pg_ctl.exe" runservice -N
"postgresql-9.4" -D "D:\Program Files (x86)\PostgreSQL\9.4\data"