美文网首页
centos6.3 安装Coreseek3.2.14

centos6.3 安装Coreseek3.2.14

作者: AlvinL | 来源:发表于2017-04-20 17:53 被阅读40次
  1. 按照官方文档步骤安装
    http://www.coreseek.cn/products-install/install_on_bsd_linux/#srcdesc
  2. 出现的问题
  • 出现 undefined reference to 'libiconv'的错误,解决方法有如下:

    • 方法一(Linux系统使用)
    export LIBS="liconv"
    make clean
    ./configure --prefix=/usr/local/coreseek --without-python --without-unixodbc --with-mmseg --with-mmseg-includes=/usr/local/mmseg3/include/mmseg/ --with-mmseg-libs=/usr/local/mmseg3/lib/ --without-mysql
    
    • 方法二:
      configure之后,编辑src/Makefile,在其中搜索lexpat,在后面加上-liconv,修改后为-lexpat -liconv -L/usr/local/lib,再次执行make && make install

    • 方法三:
      首先configure,然后编辑config/config.h,将其中的USER_LIBICONV, 将其后的1修改为0,再次执行make && make install

  1. 测试
  • 建立索引
    /usr/local/coreseek/bin/indexer -c etc/csft.conf --all ##--all表示全部索引
  • 启动搜索服务
    - 控制台模式
    /usr/local/coreseek/bin/searchd -c etc/csft.conf --console
    - 后台服务模式

/usr/local/coreseek/bin/searchd -c etc/csft.conf //后台服务
/usr/local/coreseek/bin/searchd -c etc/csft.conf --stop //停止服务
/usr/local/coreseek/bin/indexer -c etc/csft.conf index名称
/usr/local/coreseek/bin/indexer -c etc/csft.conf --all --rotate// 更新后台服务的索引

4. 参考
http://www.coreseek.cn/products-install/install_on_bsd_linux/
http://www.coreseek.cn/products-install/step_by_step/
http://www.coreseek.cn/products-install/mysql/


相关文章

网友评论

      本文标题:centos6.3 安装Coreseek3.2.14

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