# 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.