有没有办法使用命令提示符在windows上安装PostgreSQL?
(不使用PostgreSQL installer)
发布于 2014-03-05 22:08:00
postgresql-9.3.3-1-windows-x64.exe --unattendedmodeui minimal --mode unattended --superpassword "password" --servicename "postgreSQL"
--servicepassword "password" --serverport 5432值得一提的是,postgresql-9.3.3-1-windows-x64.exe --help将提供可使用的选项和默认值列表。
发布于 2014-03-05 17:47:17
Run the installer in unattended(silent) mode
-或者-
download the plain binaries,initdb一个新的数据目录,然后使用pg_ctl启动服务器。您可以使用标准的Windows工具(如sc )安装服务,也可以使用pg_ctl register创建服务。
如果您计划在应用程序中捆绑PostgreSQL,请使用后一种方法(二进制压缩),并确保您在默认端口5432以外的端口上运行它,这样您的应用程序就不会与用户可能自己进行的任何安装冲突。
https://stackoverflow.com/questions/22193927
复制相似问题