首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Cassandra 2.2.7的Kong设置

Cassandra 2.2.7的Kong设置
EN

Stack Overflow用户
提问于 2016-09-19 13:54:04
回答 1查看 1.5K关注 0票数 0

刚刚开始使用Kong,但我一直面临着这个问题。

我正在尝试在Mac上设置Kong,并按照下面的说明操作:

Kong for Mac

我已经在本地安装并运行了Cassandra 2.2.7。我可以通过'cqlsh‘连接到它并创建一个密钥空间等。

但是当我运行以下命令时,kong没有启动:

代码语言:javascript
复制
kong start 

我尝试过--vv选项,它给出了以下输出:

代码语言:javascript
复制
2016/09/19 11:13:30 [verbose] no config file found at /etc/kong.conf
2016/09/19 11:13:30 [verbose] no config file found at /etc/kong/kong.conf
2016/09/19 11:13:30 [verbose] no config file, skipping loading
2016/09/19 11:13:30 [debug] admin_listen = "0.0.0.0:8001"
2016/09/19 11:13:30 [debug] anonymous_reports = true
2016/09/19 11:13:30 [debug] cassandra_consistency = "ONE"
2016/09/19 11:13:30 [debug] cassandra_contact_points = {"127.0.0.1"}
2016/09/19 11:13:30 [debug] cassandra_data_centers = {"dc1:2","dc2:3"}
2016/09/19 11:13:30 [debug] cassandra_keyspace = "kong"
2016/09/19 11:13:30 [debug] cassandra_port = 9042
2016/09/19 11:13:30 [debug] cassandra_repl_factor = 1
2016/09/19 11:13:30 [debug] cassandra_repl_strategy = "SimpleStrategy"
2016/09/19 11:13:30 [debug] cassandra_ssl = false
2016/09/19 11:13:30 [debug] cassandra_ssl_verify = false
2016/09/19 11:13:30 [debug] cassandra_timeout = 5000
2016/09/19 11:13:30 [debug] cassandra_username = "kong"
2016/09/19 11:13:30 [debug] cluster_listen = "0.0.0.0:7946"
2016/09/19 11:13:30 [debug] cluster_listen_rpc = "127.0.0.1:7373"
2016/09/19 11:13:30 [debug] cluster_profile = "wan"
2016/09/19 11:13:30 [debug] cluster_ttl_on_failure = 3600
2016/09/19 11:13:30 [debug] custom_plugins = {}
2016/09/19 11:13:30 [debug] database = "postgres"
2016/09/19 11:13:30 [debug] dnsmasq = true
2016/09/19 11:13:30 [debug] dnsmasq_port = 8053
2016/09/19 11:13:30 [debug] log_level = "notice"
2016/09/19 11:13:30 [debug] lua_code_cache = "on"
2016/09/19 11:13:30 [debug] lua_package_cpath = ""
2016/09/19 11:13:30 [debug] lua_package_path = "?/init.lua;./kong/?.lua"
2016/09/19 11:13:30 [debug] lua_ssl_verify_depth = 1
2016/09/19 11:13:30 [debug] mem_cache_size = "128m"
2016/09/19 11:13:30 [debug] nginx_daemon = "on"
2016/09/19 11:13:30 [debug] nginx_optimizations = true
2016/09/19 11:13:30 [debug] nginx_worker_processes = "auto"
2016/09/19 11:13:30 [debug] pg_database = "kong"
2016/09/19 11:13:30 [debug] pg_host = "127.0.0.1"
2016/09/19 11:13:30 [debug] pg_port = 5432
2016/09/19 11:13:30 [debug] pg_ssl = false
2016/09/19 11:13:30 [debug] pg_ssl_verify = false
2016/09/19 11:13:30 [debug] pg_user = "kong"
2016/09/19 11:13:30 [debug] prefix = "/usr/local/kong/"
2016/09/19 11:13:30 [debug] proxy_listen = "0.0.0.0:8000"
2016/09/19 11:13:30 [debug] proxy_listen_ssl = "0.0.0.0:8443"
2016/09/19 11:13:30 [debug] serf_path = "serf"
2016/09/19 11:13:30 [debug] ssl = true
2016/09/19 11:13:30 [verbose] prefix in use: /usr/local/kong
2016/09/19 11:13:30 [verbose] running datastore migrations
2016/09/19 11:13:30 [verbose] could not start Kong, stopping services
2016/09/19 11:13:30 [verbose] leaving serf cluster

我在本地没有看到任何日志告诉我问题的确切原因。我在网上看了很久,但还没有找到解决方案。

我错过了什么有什么想法吗?

EN

回答 1

Stack Overflow用户

发布于 2016-09-22 12:43:20

尝试使用KONG_DATABASE=cassandra kong start来明确表示孔令辉应该使用Cassandra。

或者将配置文件中的database属性更新为cassandra

另外,Kong >= 0.9.2有更多描述性错误。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39566192

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档