centos7上PostgreSQL11安装与配置
1、安装epel yum -y install epel-release 2、安装PostgreSQL11 yum -y install https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64/pgdg-centos11-11-2.noarch.rpm yum -y install postgresql11 yum -y install postgresql11-server # 附带安装 yum -y install postgresql11-libs postgresql11-contrib postgresql11-devel # 初始化数据,并设置开机自启动 /usr/pgsql-11/bin/postgresql-11-setup initdb systemctl enable postgresql-11 systemctl start postgresql-11 3、修改PostgreSQL创建的linux用户 postgres passwd postgres 4、配置可以访问PostgreSQL的ip( 更多参考此处 ) sudo vim /var/lib/pgsql/11/data/postgresql.conf # '192.168.1.188' 是本机ip listen