美文网首页
sphinx-2.2.10

sphinx-2.2.10

作者: 汪南 | 来源:发表于2016-01-12 15:21 被阅读0次

1、下载

wget http://sphinxsearch.com/files/sphinx-2.2.10-release.tar.gz

2、解压安装

tar -zxvf  sphinx-2.2.10-release.tar.gz -C /usr/local/src/

./configure --prefix=/usr/local/sphinx-2.2.10 --with-mysql=/usr/local/mysql-5.6.20/

make && make install

3、修改配置文件

cp sphinx.conf.dist sphinx.conf

vim sphinx.conf

sphinx 在安装好的文件下面有个example.sql  ,把这个导入到数据库

mysql -u root -p < example.sql

4、建立索引: ./indexer --all;  注意这时候会报错误:usr/local/sphinx/bin/indexer:error while loading shared libraries:libmysqlclient.so.18 cannot opent shared object file: No such file or directory 由于sphinx 默认去找的mysql是mysql一般默认的安装路径,我的mysql是安装在自己定义的位置,所以这地方要做个软连接:

ln -s /usr/local/mysql-5.6.20/lib/libmysqlclient.so.18 /usr/lib64/libmysqlclient.so.18

5、建立索引文件:

成功!!!

相关文章

  • sphinx-2.2.10

    1、编译: ./configure--prefix=/usr/local/sphinx-2.2.10 --with...

  • sphinx-2.2.10

    1、下载 wget http://sphinxsearch.com/files/sphinx-2.2.10-rel...

网友评论

      本文标题:sphinx-2.2.10

      本文链接:https://www.haomeiwen.com/subject/zgcckttx.html