【发布时间】:2015-08-06 15:12:02
【问题描述】:
我的 Rails 项目在服务器 nginx + 乘客上运行。我注意到思考狮身人面像无法响应异步连接。我在浏览器搜索查询的两个选项卡中运行,其中一个响应返回了此错误:
Error connecting to Sphinx via the MySQL protocol. Error connecting to Sphinx via the MySQL protocol. Can't connect to MySQL server on '127.0.0.1' (111) ...
thinking_sphinx.yml:
development:
quiet_deltas: true
mysql41: 9311
bin_path: "/usr/bin"
searchd_binary_name: searchd
indexer_binary_name: indexer
min_infix_len: 3
min_word_len: 2
html_strip: 1
index_exact_words: 1
min_stemming_len: 4
charset_type: "utf-8"
test:
mysql41: 9311
production:
mysql41: 9311
本地主机上没有这样的问题,WebRick 上的服务器。 我该怎么做才能避免这种情况。只有一个思维斯芬克斯过程。也许我可以增加它的数量。 提前致谢!
更新
我重建了会思考的狮身人面像,我好久没做了,现在它没有掉下来,也许里面有东西。但是我还是对如何运行多个ts进程感兴趣,还是没必要。
【问题讨论】:
-
添加你的狮身人面像配置
-
我认为您可能需要使用 max_children config sphinxsearch.com/docs/current.html#conf-max-children we.riseup.net/rails/running-a-sphinx-server
标签: ruby-on-rails nginx passenger sphinx thinking-sphinx