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');
------------------------------------------------------------------------


转载于:https://my.oschina.net/china008/blog/305249

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值