【SDE】Centos7 离线安装 Postgresql 12 并配置 sde
使用 ArcGIS 10.9.1 对应的 Postgresql 12.7
rpm包
postgresql12-12.7-1PGDG.rhel7.x86_64.rpm
postgresql12-contrib-12.7-1PGDG.rhel7.x86_64.rpm
postgresql12-libs-12.7-1PGDG.rhel7.x86_64.rpm
postgresql12-server-12.7-1PGDG.rhel7.x86_64.rpm
libicu-50.2-4.el7_7.x86_64.rpm
执行安装
yum localinstall *.rpm
数据库初始化
su - postgres
cd /usr/pgsql-12/bin/
#初始化数据库
./initdb -D /var/lib/pgsql/12/data/
重启并设置自动启动
systemctl enable postgresql-12 && systemctl restart postgresql-12
访问设置
su - postgres
psql
#修改密码
alter role postgres with password 'your_root_pwd###';
#修改配置文件,配置登录策略等
vim /var/lib/pgsql/12/data/pg_hba.conf
#增加一行
host all all 0.0.0.0/0 md5
# trust 是免密, md5 是加密
#修改数据库其他配置信息
vim /var/lib/pgsql/12/data/postgresql.conf
listen_addresses = '*'
max_connections = 700
#重启服务
systemctl restart postgresql-12
# 重启后检查服务状态
systemctl status postgresql-12
配置st_geometry
su - postgres
cd /usr/pgsql-12/bin/
# 查看PKGLIBDIR目录路径
./pg_config --pkglibdir
拷贝对应版本的 st_geometry.so
到 PKGLIBDIR
中
创建 SDE
使用 创建企业级地理数据库 工具创建sde
新建数据库连接
可新建 要素数据集
,则创建成功并成功启用 Geodatabase
数据模型
分类:
ArcGIS Enterprise
, SDE
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构