在同一台服务器上运行两个版本的ThinkingSphinx时出现问题

时间:2013-07-30 09:06:48

标签: ruby-on-rails thinking-sphinx

我有一个专用服务器设置了我的应用程序的两个实例。一个在生产中,一个在分期中

我似乎无法在两个应用程序上同时运行Thinking Sphinx。

当我尝试启动它时,我收到此错误:

[Tue Jul 30 10:02:31.618 2013] [20464] Child process 20465 has been forked [Tue Jul 30 10:02:31.669 2013] [20465] listening on 127.0.0.1:9306 [Tue Jul 30 10:02:31.669 2013] [20465] bind() failed on 127.0.0.1, retrying... [Tue Jul 30 10:02:34.672 2013] [20465] bind() failed on 127.0.0.1, retrying... [Tue Jul 30 10:02:37.676 2013] [20465] bind() failed on 127.0.0.1, retrying... [Tue Jul 30 10:02:40.679 2013] [20465] bind() failed on 127.0.0.1, retrying... [Tue Jul 30 10:02:43.682 2013] [20465] bind() failed on 127.0.0.1, retrying... [Tue Jul 30 10:02:46.685 2013] [20465] bind() failed on 127.0.0.1, retrying... [Tue Jul 30 10:02:49.688 2013] [20465] bind() failed on 127.0.0.1, retrying... [Tue Jul 30 10:02:52.691 2013] [20465] bind() failed on 127.0.0.1, retrying... [Tue Jul 30 10:02:55.694 2013] [20465] bind() failed on 127.0.0.1, retrying... [Tue Jul 30 10:02:58.697 2013] [20465] bind() failed on 127.0.0.1, retrying... [Tue Jul 30 10:03:01.700 2013] [20465] bind() failed on 127.0.0.1, retrying... [Tue Jul 30 10:03:04.703 2013] [20465] bind() failed on 127.0.0.1, retrying... [Tue Jul 30 10:03:07.706 2013] [20465] FATAL: bind() failed on 127.0.0.1: Address already in use [Tue Jul 30 10:03:07.707 2013] [20464] Child process 20465 has been finished, exit code 1. Watchdog finishes also. Good bye!

有人可以建议我如何在同一台服务器上的同一个应用程序的两个版本上运行TS吗?

1 个答案:

答案 0 :(得分:2)

您应该为不同的环境指定不同的端口:

http://pat.github.io/thinking-sphinx/advanced_config.html