安装coreseek全文检索服务器

来源:互联网 发布:sql库存汇总 编辑:程序博客网 时间:2024/05/05 05:11
==安装coreseek全文检索服务器==
root:
groupadd xmp
useradd -g xmp -d /home/coreseek -m -s /bin/bash coreseek
passwd coreseek
coreseek:
cd ~
mkdir localfile; cd localfile
wget http://www.coreseek.cn/uploads/csft/3.2/coreseek-3.2.14.tar.gz
tar zxvf coreseek-3.2.14.tar.gz
cd coreseek-3.2.14
##ubuntu-10.04安装前环境测试##
apt-get install make gcc g++ automake libtool mysql-client libmysqlclient15-dev   libxml2-dev libexpat1-dev

##安装mmseg
$ cd mmseg-3.2.14
$ ACLOCAL_FLAGS="-I /usr/share/aclocal" ./bootstrap    #输出的warning信息可以忽略,如果出现error则需要解决
$ ./configure --prefix=/usr/local/mmseg3
$ make && make install #install may su to root and #chown -R coreseek:xmp mmseg3/
$ /usr/local/mmseg3/bin/mmseg -d /usr/local/mmseg3/etc src/t1.txt #测试
$ cd ..

##安装coreseek
$ cd csft-3.2.14
$ sh buildconf.sh    #输出的warning信息可以忽略,如果出现error则需要解决
$ ./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    ##如果提示mysql问题,可以查看MySQL数据源安装说明
$ make && make install #install may su to root and #chown -R coreseek:xmp coreseek/
$ cd ..

##测试
cd testpack
/usr/local/coreseek/bin/indexer -c etc/csft.conf
/usr/local/coreseek/bin/indexer -c etc/csft.conf --all
/usr/local/coreseek/bin/indexer -c etc/csft.conf xml
/usr/local/coreseek/bin/search -c etc/csft.conf
/usr/local/coreseek/bin/search -c etc/csft.conf -a Twittter和Opera都提供了搜索服务
/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 --all --rotate

##编辑mysql数据源的配置文件,并用该配置文件启动searchd服务

参考:http://www.coreseek.cn/products-install/install_on_bsd_linux/
原创粉丝点击