centos下rpm方式安装Sphinx
[ 2013-10-11 17:05:43 | 作者: admin ]
p.s. 分词算法必须参考 coreseek,网站 http://www.coreseek.cn/
Sphinx参考文档
Install Sphinx 2.0.4 on CentOS 6.2
http://gadelkareem.com/2012/03/12/install-sphinx-2-0-4-on-centos-6-2/
Mysql+sphinx+中文分词简介(ubuntu)
http://www.cnblogs.com/hushixiu/articles/1295605.html
CentOS5.5 安装 Sphinx 全文检索
http://blog.csdn.net/adparking/article/details/6425108
Sphinx安装过程
(1)、下载最新Sphinx新版本
http://www.sphinxsearch.com/downloads.html
http://sphinxsearch.com/downloads/release/
(2)、发现Sphinx的rpm安装包需要(MySQL-shared-compat 和 libpq.so.4 )
下载和安装MySQL-shared-compat
http://rpm.pbone.net/index.php3?stat=3&search=MySQL-shared-compat&srodzaj=3
http://rpm.pbone.net/index.php3/stat/4/idpl/21848267/dir/redhat_el_5/com/MySQL-shared-compat-5.5.32-1.rhel5.i386.rpm.html
安装libpq.so.4 (解决办法:1:yum install libpq.so.4 2:第一个办法不行的话,下载libpq.so.4源码,重新编译。)
yum install libpq.so.4
如果是64位 libpq.so.4()(64bit) 的,可以安装这个rpm
http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/libpq.so.4%28%29%2864bit%29
(3)、安装Sphinx
rpm -Uvh ***.rpm
============================================================================
Sphinx安装完毕之后的提示操作
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');
See the manual at /usr/share/doc/sphinx-2.1.2 for details.
============================================================================
备注 RPM常用命令组合:
-ivh:安装显示安装进度--install--verbose--hash
-Uvh:升级软件包--Update;
-qpl:列出RPM软件包内的文件信息[Query Package list];
-qpi:列出RPM软件包的描述信息[Query Package install package(s)];
-qf:查找指定文件属于哪个RPM软件包[Query File];
-Va:校验所有的RPM软件包,查找丢失的文件[View Lost];
-e:删除包
Sphinx参考文档
Install Sphinx 2.0.4 on CentOS 6.2
http://gadelkareem.com/2012/03/12/install-sphinx-2-0-4-on-centos-6-2/
Mysql+sphinx+中文分词简介(ubuntu)
http://www.cnblogs.com/hushixiu/articles/1295605.html
CentOS5.5 安装 Sphinx 全文检索
http://blog.csdn.net/adparking/article/details/6425108
Sphinx安装过程
(1)、下载最新Sphinx新版本
http://www.sphinxsearch.com/downloads.html
http://sphinxsearch.com/downloads/release/
(2)、发现Sphinx的rpm安装包需要(MySQL-shared-compat 和 libpq.so.4 )
下载和安装MySQL-shared-compat
http://rpm.pbone.net/index.php3?stat=3&search=MySQL-shared-compat&srodzaj=3
http://rpm.pbone.net/index.php3/stat/4/idpl/21848267/dir/redhat_el_5/com/MySQL-shared-compat-5.5.32-1.rhel5.i386.rpm.html
安装libpq.so.4 (解决办法:1:yum install libpq.so.4 2:第一个办法不行的话,下载libpq.so.4源码,重新编译。)
yum install libpq.so.4
如果是64位 libpq.so.4()(64bit) 的,可以安装这个rpm
http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/libpq.so.4%28%29%2864bit%29
(3)、安装Sphinx
rpm -Uvh ***.rpm
============================================================================
Sphinx安装完毕之后的提示操作
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');
See the manual at /usr/share/doc/sphinx-2.1.2 for details.
============================================================================
备注 RPM常用命令组合:
-ivh:安装显示安装进度--install--verbose--hash
-Uvh:升级软件包--Update;
-qpl:列出RPM软件包内的文件信息[Query Package list];
-qpi:列出RPM软件包的描述信息[Query Package install package(s)];
-qf:查找指定文件属于哪个RPM软件包[Query File];
-Va:校验所有的RPM软件包,查找丢失的文件[View Lost];
-e:删除包
[最后修改由 admin, 于 2013-10-16 16:54:32]
评论Feed: http://blog.xg98.com/feed.asp?q=comment&id=2150
这篇日志没有评论。
此日志不可发表评论。