CentOS 7 安装Kong 0.14.*笔记
1 安装PostgreSQL V11
-
安装RMP源
yum install https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64/pgdg-centos11-11-2.noarch.rpm
-
安装客户端
yum install postgresql11
-
安装服务端
yum install postgresql11-server
-
初始化数据库和设置开机启动
/usr/pgsql-11/bin/postgresql-11-setup initdb systemctl enable postgresql-11 systemctl start postgresql-11
-
修改用户密码
PostgreSQL 安装完成后,会建立一下‘postgres’用户,用于执行PostgreSQL,数据库中也会建立一个’postgres’用户,默认密码为自动生成,需要在系统中改一下。
-
配置远程连接
vi /var/lib/pgsql/11/data/postgresql.conf # 将 #listen_addresses = 'localhost' 修改