linux安装postgresql方法
1、安装postgres孥恶膈茯ql的仓库源yum installhttps://download.postgresql.org/pub/rep泠贾高框os/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。
阅读量:55
阅读量:22
阅读量:27
阅读量:68
阅读量:83