改配置文件kong.yml
①找到配置文件的位置
我的再etc/kong/kong.yml,你如果找不到。我在这里说一种方法,你输入find / -name kong.yml,就会看见你的配置文件的位置了。②修改配置文件(从96行开始,其他的不变。)如果你和我的配置一模一样,但是之后还是无法运行显示Could not parse configuration at:那么就是你空格的问题了。配置的读取和空格缩进密不可分,你可以选择复制我的配置。
######
## Specify which database to use. Only "cassandra" and "postgres" are currently available.
database: postgres
######
#PostgreSQL configuration
postgres:
host: "127.0.0.1"
port: 5432
######
## Name of the database used by Kong. Will be created if it does not exist.
database: kong
#####
## User authentication settings
user: "kong_user"
password: "kong_pass"
######
③我们启动kong

你如果出现了上诉错误,那么恭喜你,你距离成功又进了一步。
上诉错误的意思是你没有安装Nginx。下面我们讲诉这个Nigix的安装。
Nigix的安装教程:https://blog.csdn.net/cgd_programlife/article/details/80498302