当我尝试在Ubuntu中启动Kong时,我得到了以下错误
kong start [-c /path/to/kong.conf]
prefix directory /usr/local/kong not found, trying to create it
2017/11/05 21:11:41 [warn] ulimit is currently set to "1024". For better performance set it to at least "4096" using "ulimit -n"
Error: /usr/local/share/lua/5.1/pgmoon/init.lua:271: missing password, required for connect我错过了什么吗?
发布于 2017-11-16 15:51:50
在psql上运行以下命令。CREATE USER kong; CREATE DATABASE kong OWNER kong; ALTER USER kong WITH PASSWORD 'password';
创建一个包含以下内容的kong.config。pg_user = kong pg_password = password
运行迁移并启动kong (可能需要sudo) $ kong migrations up -c kong.config $ kong start -c kong.config
发布于 2018-03-20 17:03:43
您的命令是正确的,您只需从命令中删除"[“即可。这是在kong-documentaion中可选参数的一个指示。所以正确的命令应该是:
kong start -c /path/to/your/kong.conf确保事先在kong.conf中更新并取消注释了以下字段:
database = postgres (as in your case)
pg_host = your_host_address (127.0.0.1 by default)
pg_port = your_psql_port_address (5432 by default)
pg_user = your_psql_db_user (kong as per documentation of kong)
pg_password = your_psql_db_user's_password
pg_database = your_db_for_kong (kong as per documentation of kong)如果建议的解决方案对您有帮助,请通过接受它作为答案来结束问题。谢谢!
发布于 2018-06-26 00:05:54
我也有同样的错误,可能是你的postgresql版本太旧了:
postgres start -c kong.conf错误:postgres错误kong需要PostgreSQL 9.5或更高版本(当前使用9.2)
https://stackoverflow.com/questions/47126728
复制相似问题