centos上安装postgresql

2025-04-27 19:23:52

1、从官网找到对应系统版本的yum源

centos上安装postgresql
centos上安装postgresql

2、在系统上安装yum源

centos上安装postgresql

3、安装PostgreSQL Server,可以看到,PostgreSQL Client也安装好了

centos上安装postgresql
centos上安装postgresql

4、初始化数据库

centos上安装postgresql

5、启动PostgreSQL Server,并查看状态

centos上安装postgresql

6、安装PostgreSQL,会创建一个postgres用户,可在此用户下登陆postgresql

centos上安装postgresql

7、给postgres用户设置密码

centos上安装postgresql
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢