标签:
yum install mysql-devel libxml2-devel expat-devel cd /data/software/ wget http://www.coreseek.cn/uploads/csft/4.0/coreseek-4.1-beta.tar.gz tar zxvf coreseek-4.1-beta.tar.gz cd coreseek-4.1-beta/ cd mmseg-3.2.14/ ./bootstrap ./configure --prefix=/usr/local/mmseg make && make install cd ../ cd csft-4.1/ sh buildconf.sh ./configure --prefix=/usr/local/coreseek4 --without-unixodbc --with-mmseg --with-mmseg-includes=/usr/local/mmseg/include/mmseg/ --with-mmseg-libs=/usr/local/mmseg/lib/ --with-mysql make && make install cd ../
安装过程遇到warning可以忽略,遇到error是需要解决的,我在安装的过程中遇到集中错误,解决方法见
##测试mmseg分词,coreseek搜索(需要预先设置好字符集为zh_CN.UTF-8,确保正确显示中文)
cd testpack cat var/test/test.xml #此时应该正确显示中文 /usr/local/mmseg/bin/mmseg -d /usr/local/mmseg/etc var/test/test.xml /usr/local/coreseek4/bin/indexer -c etc/csft.conf --all /usr/local/coreseek4/bin/search -c etc/csft.conf 网络搜索
根据自己的业务需求,
正常建索引
/usr/local/coreseek4/bin/indexer -c /usr/local/coreseek4/etc/weixin_main.conf --all
正常开启搜索服务
nohup /usr/local/coreseek4/bin/searchd -c /usr/local/coreseek4/etc/weixin_main.conf &
正常停止搜索服务
/usr/local/coreseek4/bin/searchd -c /usr/local/coreseek4/etc/weixin_main.conf --stop
如果已经启动服务,要更新索引,使用
/usr/local/coreseek4/bin/indexer -c /usr/local/coreseek4/etc/weixin_main.conf --all —rotate
标签:
原文地址:http://www.cnblogs.com/mingaixin/p/5013131.html