centos5.x安装sphinx


 sudo wget http://mirror.centos.org/centos/6/os/x86_64/Packages/unixODBC-2.2.14-12.el6_3.x86_64.rpm

sudo wget http://mirror.centos.org/centos/6/os/x86_64/Packages/postgresql-libs-8.4.18-1.el6_4.x86_64.rpm

sudo wget http://sphinxsearch.com/files/sphinx-2.1.9-1.rhel6.x86_64.rpm

sudo rpm -ivh postgresql-libs-8.4.18-1.el6_4.x86_64.rpm
 sudo rpm -ivh unixODBC-2.2.14-12.el6_3.x86_64.rpm
 sudo rpm -ivh sphinx-2.1.9-1.rhel6.x86_64.rpm

------------------------------------------------------------------------

Sphinx installed!
Now create a full-text index, start the search daemon, and you're all set.

To manage indexes:
    editor /etc/sphinx/sphinx.conf

To rebuild all disk indexes:
    sudo -u sphinx indexer --all --rotate

To start/stop search daemon:
    service searchd start/stop

To query search daemon using MySQL client:
    mysql -h 0 -P 9306
    mysql> SELECT * FROM test1 WHERE MATCH('test');
------------------------------------------------------------------------


你可能感兴趣的:(centos5.x安装sphinx)