coreseek 安装,安装 php连接sphinx 拓展

使用sphinx 需要注意以下几件事情:
1 .首先要有数据
2 .建立Sphinx 配置文件
3 .生成索引
4 .启动Searchd 服务进程,并开户端口 9312
5 .用php 客户端去连接sphinx


Coreseek(带有中文分词的sphinx) 的安装:
#wget http:
//www.coreseek.cn/uploads/csft/3.2/coreseek-3.2.14.tar.gz

#tar -zxpf  coreseek-3.2.14.tar.gz

1 .安装mmseg

#cd mmseg-3.2.14
#./configure --prefix=/usr/local/mmseg

//出现错误config.status: error: cannot find input file: src/Makefile.in 时候执行

#aclocal

#libtoolize --force

#automake --add-missing

#autoconf

#autoheader

#make clean

#./configure --prefix=/usr/local/mmseg

#make && make install


2.安装csftsphinx

#cd ../csft-4.1/

#sh buildconf.sh 

#./configure --prefix=/usr/local/coreseek --with-mysql=/usr/local/mysql --with-mmseg=/usr/local/mmseg  --with-mmseg-includes=/usr/local/mmseg/include/mmseg/ --with-mmseg-libs=/usr/local/mmseg/lib/

# make && make install


php连接sphinx

安装sphinx 连接客户端

#cd  . /coreseek-3.2.14/csft-3.2.14/api/libsphinxclient

#make && make install


下载php 连接sphinx 连接程序

#wget http://pecl.php.net/get/sphinx-1.3.2.tgz

#tar -zxvf sphinx-1.3.2.tgz

#cd sphinx-1.3.2

#./configure --with-php-config=/usr/local/php/bin/php-config --with-sphinx

#make && make install

php.ini 里面加入extension=sphinx.so






转载于:https://my.oschina.net/u/2005212/blog/307991

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值