稷然如此

  • 首页
  • 文章分类
    • AI
    • Android
    • Java
    • Golang
    • Shell
    • Vue
    • C#
    • Python
    • 数据库
    • 组件
    • 其他
    • Game
  • 常用命令
    • Docker
    • Git
    • Linux
  • 操作系统
    • CentOS
    • Ubuntu
    • Windows
    • Kylin
    • Euler
  • 工具
    • IntelliJ IDEA
    • Visual Studio Code
稷然如此
不积跬步,无以至千里
  1. 首页
  2. 操作系统
  3. Euler
  4. 正文

OpenEuler 安装 PostgreSql

2026年5月6日 3点热度 0人点赞
1.下载
地址:ftp 目录
2.创建用户组及目录
# 创建用户组
groupadd postgres

# 创建用户
useradd -g postgres postgres -s /bin/bash

# 创建根目录
mkdir -p /opt/postgresql-14.4

# 创建数据存储目录
mkdir -p /opt/postgresql-14.4/data

# 授权
chown -R postgres:postgres /opt/postgresql-14.4
chown -R postgres:postgres /opt/postgresql-14.4/data
3.安装
# 解压缩(压缩放在 /home 根目录下)
tar -zxvf /home/postgresql-14.4.tar.gz

# 配置编译项
cd /home/postgresql-14.4
./configure --prefix=/opt/postgresql-14.4 \
--with-python --with-systemd --with-lz4 --with-zstd \--with-openssl --with-libxml --with-libxslt
常见问题:
# 报错:
checking for liblz4... no
configure: error: Package requirements (liblz4) were not met:

Package 'liblz4', required by 'virtual:world', not found

# 解决:
yum install -y lz4-devel

 

标签: postgresql
最后更新:2026年5月6日

Akim

犇 骉 古法 AI 双修者 Java、C#、Python、Go、Android、Vue、Bootstrap

点赞
< 上一篇

Copyright © 2026 aianran.com All Rights Reserved.

免责申明 | 隐私政策 | 服务条款 | 关于我们

黔ICP备2023008200号-1

贵公网安备 52010202003594号