coreseek+sphinx详细安装配置

首先下载coreseek-3.2.14.tar.gz和sphinx.tgz
yum install m4 autoconf automake libtool mysql-devel libxml2-devel expat-devel
tar zxvf  coreseek-3.2.14.tar.gz
首先安装mmseg
cd  coreseek-3.2.14/mmesg-3.2.14
./bootstrap
./configure --prefix=/usr/local/mmseg
make && make install

然后安装coreseek
cd csft-3.2.14
sh  buildconf.sh
./configure --prefix=/usr/local/coreseek  --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  csft-3.2.14/api/libsphinxclient/
./configure
make && make install

安装php扩展
cd sphinx-1.2.0
/usr/local/php/bin/phpize
./configure -with-php-config=/usr/local/php/bin/php-config -with-sphinx
make && make install

在php.ini里面添加如下行
extension = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/sphinx.so"
重启php,如果在/usr/local/php/bin/php -m中看到sphinx则安装成功

然后根据自己的需要修改 /usr/local/coreseek/etc里面的配置文件
/usr/local/coreseek目录下创建init目录,进入init创建文件 delta.sh、 main.sh,分别在文件里面添加如下内容
/usr/local/coreseek/bin/indexer delta --rotate >>/usr/local/coreseek/var/log/delta.log
/usr/local/coreseek/bin/indexer main --rotate >>/usr/local/coreseek/var/log/main.log

添加之后开始创建索引:
/usr/local/coreseek/bin/indexer -c /usr/local/coreseek/etc/csft.conf --all
/usr/local/coreseek/bin/searchd -c /usr/local/coreseek/etc/csft.conf
结束!!!

你可能感兴趣的:(coreseek+sphinx详细安装配置)