Register and run PostgreSQL 9.0 as Windows Service

后端 未结 2 1261
梦谈多话
梦谈多话 2020-12-09 18:24

For a while i have my db running on a command window because im not figuring out how to run it as a windows service.

Since i have the zip file version downloaded. ho

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-09 18:24

    Just run 'Command Prompt' as windows administrator and run the below command:

    pg_ctl.exe register -N PostgreSQL -D "D:/Program Files/PostgreSQL/9.0.4/db_data"
    

    You don't need to specify a User and Password, as previous answers have suggested.

提交回复
热议问题