docker run -d --name kong-database -p 5432:5432 -e "POSTGRES_USER=kong" -e "POSTGRES_DB=kong" -e "POSTGRES_PASSWORD=kong" -e "POSTGRES_DB=kong" postgres:12


docker run --rm -e "KONG_DATABASE=postgres" -e "KONG_PG_HOST=192.168.124.51" -e "KONG_PG_PASSWORD=kong" -e "POSTGRES_USER=kong" -e "KONG_CASSANDRA_CONTACT_POINTS=kong-database" kong kong migrations bootstrap这里不使用docker安装,因为docker连接注册中心等很容易出错,不会排查的话会产生很多问题
curl $(rpm --eval "https://download.konghq.com/gateway-2.x-centos-%{centos_ver}/config.repo") | sudo tee /etc/yum.repos.d/kong.repo sudo yum install kong-enterprise-edition-2.8.1.3
systemctl stop firewalld.servicesystemctl restart dockercp /etc/kong/kong.conf.default /etc/kong/kong.confvim /etc/kong/kong.conf
:/postgres 开始修改配置
:/dns 开始修改配置注册中心consul
:/admin_listen = 127
:/proxy_listen = 
kong migrations upkong migrations finishkong migrations bootstrap up -c /etc/kong/kong.conf 这里是初始化生成数据库,这个之前docker运行过了这里可以不用运行kong start -c /etc/kong/kong.conf
firewall -cmd --zone=public --add-port=8001/tcp --premanentfirewall -cmd --zone=public --add-port=8000/tcp --premanentsudo firewall -cmd --reload

docker run -d -p 1337:1337 --name konga pantsel/konga




