手動安裝PostgresSQL and PostGIS on Windows Server

最近安裝PostgresSQL在 Windows Server 時遇到一種狀況
就是用intaller一直無法安裝
所以乾脆就採取手動安裝
先到官網指定網誌下載zip檔案 (http://www.enterprisedb.com/products-services-training/pgbindownload)

下載後放到你想放的資料夾
先指定data資料夾(可自行建立指定),可參考下列網址
http://www.petrikainulainen.net/programming/tips-and-tricks/installing-postgresql-9-1-to-windows-7-from-the-binary-zip-distribution/
initdb -U postgres -A password -E utf8 -W -D POSTGRESQL_ROOT\data

註冊Windows Service參考下列討論
http://stackoverflow.com/questions/14484652/register-and-run-postgresql-9-0-as-windows-service

pg_ctl.exe register -N postgres -U some_windows_username -P windows_password -D "D:/Program Files/PostgreSQL/9.0.4/db_data" ...

至於PostGIS就懶得自己安裝了
下載安裝檔

留言

這個網誌中的熱門文章

序曲Overture

Tomcat並存