CentOS Installation Sphinx

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.