Install using Sphinx under Windows

Source: Internet
Author: User
Tags min client access mysql database

1. Download Sphinx from http://sphinxsearch.com 2.0.1-beta

2. Extract to the appropriate directory (here take D:\shpinx as an example)

3. Create a configuration file
Sphinx Package Default with Sphinx.conf.in,sphinx-min.conf.in,example.sql example, we can completely from
Sphinx-min.conf.in copy out a sphinx.conf to test.

Modify sphinx.conf necessary (database as data source): MySQL database connection item (build test data to database by reference example.sql); @CONFDIR @ Replace with the actual directory, and then manually build the directory and subdirectories, here for

D:\sphinx\data # Index Data Directory
D:\sphinx\log # Process file directory

4. Install Sphinx to Windows Services
Searchd.exe--install-c d:\sphinx\sphinx.conf--servicename sphinxsearch
Start the service

5. PHP Client Test
Enter the D:\sphinx\api directory, Sphinx provides PHP, Python, Ruby, C and other client code, if PHP programmers want to access Sphinx, including sphinxapi.php on it, Test.php is an example of access provided by Sphinx.

Before testing, you need to generate an index file into the D:\shpinx\data directory and enter D:\sphinx\bin execution
Indexer.exe-c d:\sphinx\sphinx.conf--all
The Sphinx must be restarted to take effect after successful operation. Perform test.php after reboot
PHP test.php Test



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.