centos7.5安装postgresql方法

 时间:2026-02-13 23:29:01

1、添加yum源

centos7.5安装postgresql方法

2、清除之前的yum源并生成新的缓存

centos7.5安装postgresql方法

3、yum install postgresql96-server postgresql96-contrib postgresql96-devel

centos7.5安装postgresql方法

4、输入y并回车继续安装

centos7.5安装postgresql方法

5、验证是否安装成功rpm -aq| grep postgres

centos7.5安装postgresql方法

6、初始化数据库/usr/pgsql-9.6/bin/postgresql96-setup initdb

centos7.5安装postgresql方法

7、[root@vm-122-136 ~]# systemctl enable postgresql-9.6

Created symlink from /etc/systemd/system/multi-user.target.wants/postgresql-9.6.service to /usr/lib/systemd/system/postgresql-9.6.service.

You have new mail in /var/spool/mail/root

[root@vm-122-136 ~]# systemctl start postgresql-9.6

centos7.5安装postgresql方法

8、连接数据库并修改密码

centos7.5安装postgresql方法

  • 登录Windows Server 2003域速度缓慢解决方法
  • Windows Server 2012 R2系统如何启用远程协助
  • SQL Server 2008R2 数据库备份
  • win7系统电脑远程桌面无法连接的解决方法
  • 如何利用bat命令关1900端口及代码详解
  • 热门搜索
    埋线减肥副作用 单反怎么拍背景虚化 长沙旅游攻略 火焰纹章攻略 元宵怎么吃 怎样减肥最快最有效 wps格式刷怎么用 秦皇岛旅游攻略 连云港旅游攻略 跑步可以减肥么