centos6 安装 sphinx

安装前请先确定安装了常用的组件,然后在官方网站下载最新的Sphinx,

yum install -y python python-develhttp://sphinxsearch.com/downloads/release/ 

 安装sphinxtar zxvf sphinx-2.1.4-release.tar.gz
cd sphinx-2.1.4-release
./configure --prefix=/usr/local/sphinx –-with-mysql
make && make install

libsphinxclient 安装(PHP模块需要)

cd api/libsphinxclient
./configure --prefix=/usr/local/sphinx
make && make install

安装PHP的Sphinx模块
下载地址:http://pecl.php.net/package/sphinx

wget http://pecl.php.net/get/sphinx-1.3.0.tgz tar zxf sphinx-1.3.0.tgz
cd sphinx-1.3.0
/usr/local/PHP/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config --with-sphinx=/usr/local/sphinx/
make && make install

安装好后,在安装目录下etc目录下,有份测试数据和配置的样本

cd /usr/local/sphinx/etc
cp sphinx.conf.dist sphinx.conf

互联网广告,网络营销,数字营销,手游推广,手机流量,国外网络广告和营销,网络推广,国外电子商务营销,国外广告联盟发布,搜索引擎优化,英文站建设,域名投资,域名停放,谷歌广告,adsense,adwords,Amazon推广,Clickbank,Yeahmobi,MobVista,Avazu