linux安装postgresql方法
1、安装postgresql的仓库源
yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-1.noarch.rpm

2、进入到/etc/yum.repos.d/目录验证postgresql yum源

3、使用命令yum install postgresql10-server 安装

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

5、安装完成后初始化数据库
/usr/pgsql-10/bin/postgresql-10-setup initdb

6、设置开机自动启动
systemctl enable postgresql-10

7、防火墙上需要开放postgresql的端口

8、切换到postgres用户下就能进行创建数据库并开始使用了

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:147
阅读量:113
阅读量:172
阅读量:158
阅读量:30