D:\softInstall\PostgreSQL\postgres\10下新建目录
修改目录权限
initdb.exe -D "D:\softInstall\PostgreSQL\10\data1" -E UTF-8 -U postgres -W
修改data1下边postsql.conf的里边端口及其他信息
注册服务:
pg_ctl.exe register -N postgresql-x64-10-data1 -D D:\softInstall\PostgreSQL\10\data1