暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

postgreSQL 13安装

原创 letitia1208 2022-10-09
1614

以前安装的postgreSQL13,太长时间不用很多东西又忘了,先记录一下。

  1. 到官网https://www.postgresql.org/下载安装包(这里用yum方式):
    image.png
    image.png

  2. 配置yum源:sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
    image.png

  3. 安装数据库:sudo yum install -y postgresql13-server
    image.png

  4. 数据库初始化: sudo /usr/pgsql-13/bin/postgresql-13-setup initdb
    添加到服务中:sudo systemctl enable postgresql-13
    启动数据库: sudo systemctl start postgresql-13
    查看状态: systemctl status postgresql-13
    image.png

5.安装完毕后,系统会创建一个数据库超级用户 postgres,密码为空。 sudo -i -u postgres
image.png

--------------------------完----------------------------------

最后修改时间:2022-10-10 17:01:44
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论