0

アプリの 2 つのインスタンスを使用して専用サーバーをセットアップしています。本番環境に 1 つ、ステージングに 1 つ

両方のアプリで同時に 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!

同じサーバー上の同じアプリの 2 つのバージョンで TS を実行する方法を教えてください。

4

1 に答える 1

2

環境ごとに異なるポートを指定する必要があります。

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

于 2013-07-30T10:16:26.270 に答える