cp /etc/kong/kong.conf.defaul /etc/kong/kong.conf vi /etc/kong/kong.conf
1 2 3 4 5 6 7 8
database = postgres # Determines which of PostgreSQL or Cassandra pg_host = 127.0.0.1 # The PostgreSQL host to connect to. pg_port = 5432 # The port to connect to. pg_user = kong # The username to authenticate if required. pg_password = 123456 # The password to authenticate if required. pg_database = kong # The database name to connect to. pg_ssl = off # Toggles client-server TLS connections pg_ssl_verify = off # Toggles server certificate verification if
初始化
1 2
kong migrations bootstrap -c /etc/kong/kong.conf kong start /etc/kong/kong.conf