Linux installation configuration Sphinx2 steps detailed

Source: Internet
Author: User

# Install Sphinx 2.x

The code is as follows Copy Code

Cd/home/addcn
wget http://sphinxsearch.com/files/sphinx-2.1.1-beta.tar.gz
Tar xvf sphinx-2.1.1-beta.tar.gz
CD Sphinx-2.1.1-beta
Make clean
./configure–prefix=/usr/local/sphinx–with-mysql=/usr/local/mysql
Make && make install

# Configuration
cd/usr/local/sphinx/etc/

# wrong
Export ld_library_path= "/usr/local/mysq/lib:/usr/lib: $LD _library_path"

# start
/usr/local/sphinx/bin/searchd–config/usr/local/sphinx/etc/sphinx.conf

# stop
/usr/local/sphinx/bin/searchd–stop

# Login
/usr/local/mysql/bin/mysql-p9306–protocol TCP

# Update
/usr/local/sphinx/bin/indexer–config/usr/local/sphinx/etc/sphinx.conf–all–rotate

# Association is a live index
TRUNCATE Rtindex RT;
ATTACH INDEX disk to Rtindex RT;

After installation, our PHP MySQL Full-text search possibility can be increased hundreds of times times or tens of thousands of times times oh.

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.