centos7.4 安装 postgresql数据库

本文记录了在CentOS7.4上安装postgresql数据库时遇到的问题及解决方法,包括清除旧数据库残留进程,解决/etc/profile中的错误以及初始化数据库时的数据目录不为空的错误。最终通过步骤成功使用Navicat连接到数据库。
摘要由CSDN通过智能技术生成

网上有很多关于安装步骤流程,我在这里分享一下自己遇到的一些问题和解决过程
如果之前装过postgresql数据库,并且删除之前的了,还得查看一下是否还存在相关的数据库进程


root      9476  0.0  0.0 107952   360 ?        S    10:17   0:00 sleep 1
root      9477  0.0  0.0  51740  1748 pts/0    R+   10:17   0:00 ps aux
root      9478  0.0  0.0   6716   764 pts/0    R+   10:17   0:00 less
postgres 10887  0.0  0.7 396352 14452 ?        Ss   Jun16   0:01 /usr/pgsql-10/bin/postmaster -D /var/lib/pgsql/10/data/
postgres 10896  0.0  0.0 249152  1840 ?        Ss   Jun16   0:00 postgres: logger process
postgres 10898  0.0  0.1 396352  3428 ?        Ss   Jun16   0:00 postgres: checkpointer process
postgres 10899  0.0  0.1 396352  3016 ?        Ss   Jun16   0:00 postgres: writer process
postgres 10900  0.0  0.3 396352  6184 ?        Ss   Jun16   0:00 postgres: wal writer process
postgres 10901  0.0  0.1 396896  2848 ?        Ss   Jun16   0:01 postgres: autovacuum launcher process
postgres 10902  0.0  0.1 251416  2096 ?        Ss   Ju
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值