易游网-易游模拟器

 找回密码
 立即注册
查看: 1545|回复: 0

[linux] centos7安装pgsql后的遇到的初始化问题解决方法

[复制链接]

1406

主题

1663

帖子

1万

积分

管理员

夏墨独周

Rank: 9Rank: 9Rank: 9

积分
10094

论坛元老技术达人

QQ
发表于 2021-5-22 10:07:28 | 显示全部楼层 |阅读模式
安装centos7后,新安装了一些其他软件,先安装下postgresql。
安装postgresql步骤:
1、用yum直接安装
    #yum install postgresql
2、依赖包和服务也安装下
    #yum installl postgresql-devel postgresql-server
3、初始化postgresql数据库
    #service postgresql initdb
    #chkconfig postgresql on
4、修改下postgresql数据库默认的用户的密码
    #passwd postgres
5、启动postgresql服务器
    #systemctl start postgresql.service
6、正常情况下就可以正常使用postgresql数据库了

来源:易游模拟器(QQ:207621422),转载请注明出处!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|易游网-易游模拟器 Copyright @2015-2021 ( 浙ICP备15028007号-1 )

GMT+8, 2024-5-8 02:47 , Processed in 0.026363 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表