Official website Download: http://sphinxsearch.com/downloads/sphinx-2.2.10-release.tar.gz/thankyou.html
Installing Sphinx
Extract
Tar zxvf sphinx-2.1. 4-release.tar.gzcd Sphinx-2.1. 4-release. /configure--prefix=/usr/local/sphinx--with-mysql-includes=/usr/local/mysql/include/mysql/--with-mysql-libs=/ Usr/local/mysql/lib/mysql--with-&& make install
Libsphinxclient Installation (PHP module required)
CD api/libsphinxclient. /configure–prefix=/usr/local/&& make Install
Installing the PHP Sphinx module
wget http://pecl.php.net/get/sphinx-1.3.0.tgztar zxf sphinx-1.3. 0 . TGZCD 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 install
After installation, in the installation directory under the ETC directory, there is a sample of test data and configuration (not found, etc files)
cd/usr/local/sphinx/ETCCP sphinx.conf.dist sphinx.conf
The sphinx.conf inside the database address, the account password to change, and then lvtao.sql into the database Lvtao
Test execution
/usr/local/sphinx/bin/search Lvtao
You'll see some information about the query.
CentOS Installation Sphinx