coreseek 安装及使用方法详解

./configure –prefix=/usr/local/coreseek  –without-unixodbc –with-mmseg –with-mmseg-includes=/usr/local/mmseg3/include/mmseg/ –with-mmseg-libs=/usr/local/mmseg3/lib/ –with-mysql=/usr/local/mysql
make 
make install
cd..

    sql_host                = localhost
    sql_user                = ***
    sql_pass                = ***
    sql_db                    = ***
    sql_port                = 3306
    sql_sock            = /tmp/mysql.sock    
    sql_query_pre            = SET NAMES utf8
    sql_query                = SELECT id,content FROM table_name #不管表的主键叫什么,查出来的结果都是为id
   sql_query_info_pre      = SET NAMES utf8                      #命令行查询时,设置正确的字符集
   sql_query_info          = SELECT * FROM table WHERE id=$id  LIMIT 100#命令行查询时,从数据库读取原始数据信息
}

   charset_dictpath = /usr/local/mmseg3/etc/ #BSD、Linux环境下设置,/符 结尾
   #charset_dictpath = etc/  #Windows环境下设置,/符 结尾,最好给出绝对路径,
   charset_type        = zh_cn.utf-8
}

    read_timeout        = 5
    max_children        = 60
    max_matches            = 1000
    seamless_rotate        = 0
    preopen_indexes        = 0
    unlink_old            = 1
    pid_file = /usr/local/coreseek/var/log/searchd_example.pid  #请修改为实际使用的绝对路径,例如:/usr/local/coreseek/var/…
   log = /usr/local/coreseek/var/log/searchd_example.log  #请修改为实际使用的绝对路径,例如:/usr/local/coreseek/var/…
   query_log = /usr/local/coreseek/var/log/query_example.log #请修改为实际使用的绝对路径,例如:/usr/local/coreseek/var/…
}

using config file ‘/usr/local/coreseek/etc/ttd_search.conf’…
listening on all interfaces, port=9312

rotating index ‘mysql’: success

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2016年9月14日
下一篇 2016年9月14日

相关推荐