初始化

在压缩包版本中的bin目录下执行

.\bin\initdb.exe -D data -U postgres -A password -E utf8 --locale=chs -W

启动

.\bin\pg_ctl.exe -D data -l logfile start