如何在生产服务器上部署和配置Thinking Sphnix

时间:2019-05-22 06:51:55

标签: capistrano sphinx thinking-sphinx ruby-on-rails-5.2

我尝试在本地主机上安装和配置思想狮身人面像及其工作正常。当我尝试在生产服务器上安装时,我对如何在服务器上配置思维狮身人面像感到困惑。

这是配置文件development.sphinx.conf

indexer
{
}

searchd
{

  listen = 127.0.0.1:9306:mysql41
  log = /home/log/development.searchd.log
  query_log = /home/log/development.searchd.query.log
  pid_file = /home/log/development.sphinx.pid
  workers = threads
  binlog_path = /tmp/binlog/development
}

index product_core
{
  type = rt
  path = /db/sphinx/development/product_core
  docinfo = extern
  rt_field = sphinx_internal_class_name
  rt_field = name
  rt_attr_uint = sphinx_deleted
  rt_attr_uint = company_id
  rt_attr_bigint = sphinx_internal_id
  rt_attr_string = sphinx_internal_class
  rt_attr_string = name_sort
}

index product
{
  type = distributed
  local = product_core
}

任何人都请引导我在生产服务器上配置思想狮身人面像

0 个答案:

没有答案