5,postgresql安装
<p>在安装PostgreSql时,到达这一步,只需要选择勾选的选项就行;
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=e53c912c77c0a1040e1d1a9253f171d4&file=file.png" alt="" /></p>
<ul>
<li>在示例操作系统server 2019版本中,需要安装postgresqlV11.7版本;</li>
<li>如果安装11.7版本失败,需要卸载,然后再安装10.14版本;</li>
<li>
<p>若在【windows Server 2016】版本及其他版本,postgreSql需要安装postgreSql v10.14.1版本(该版本在软件资源包内已提供);</p>
<blockquote>
<p><strong>注:安装目录选择除C盘(安装在此可能出现数据存储问题)外的其他盘内;务必保持安装目录和数据Data目录再同一目录!!!同时保持该硬盘至少有1TB容量!!!</strong></p>
</blockquote>
</li>
</ul>
<p><strong>- 安装postgresql安装时需要将密码设置为123456</strong>
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=50005dbb73c3765e1bae195cc6bcb9b6&file=file.png" alt="" /></p>
<ul>
<li>在安装完成以后,需要配置【环境变量】,把postgresql服务关闭,【开始】右键点击【运行】(win+R),输入services.msc,找到postgresql-x64-11进程右键点击【停止】;
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=de30c87bbf73cfbdab5f155a0a3f321b&file=file.png" alt="" />
找到【我的电脑】右键点击【属性】,然后如下:
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=f5b4ae78e594409f401578e042b296e8&file=file.png" alt="" />
在【系统变量】里这是如下图所示
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=5c8fd6dab78ff2fb3ec83adcd0cecd5c&file=file.png" alt="" />
需要在path中添加你所安装的postgresql路径下的bin和lib,示例此处在D盘;</li>
</ul>