安装kong
yum install -y https://kong.bintray.com/kong-community-edition-rpm/centos/7/kong-community-edition-0.13.1.el7.noarch.rpm
安装pgsql
yum install https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-3.noarch.rpm
yum install postgresql95 postgresql95-server
/usr/pgsql-9.5/bin/postgresql95-setup initdb
配置文件: /var/lib/pgsql/9.5/data/postgresql.conf
systemctl enable postgresql-9.5;
systemctl start postgresql-9.5
报错
[postgres error] FATAL: Ident authentication failed for user "kong"
解决:
cp /etc/kong/kong.conf.default /etc/kong/kong.conf
kong start
curl -I -m 10 -o /dev/null -s -w '%{http_code}n' http://localhost:8001/ 返回200
安装konga
nodejs 安装 安装较新版本 否则会报错
npm i
npm start 报错
ERROR in Cannot find module 'node-sass'
解决:
npm install node-sass
报错:
Error: EACCES: permission denied, mkdir '/usr/local/konga/node_modules/node-sass/.node-gyp'
解决:
npm install --unsafe-perm=true --allow-root
npm start
运行成功