Home > Backend Development > PHP Tutorial > php增添solr扩展 in ubuntu

php增添solr扩展 in ubuntu

WBOY
Release: 2016-06-13 12:43:23
Original
855 people have browsed it

php添加solr扩展 in ubuntu

//安装php的solr

sudo?apt-get?install?php5-curl?

sudo?apt-get?install?libcurl4-gnutls-dev?

sudo?apt-get?install?libxml2?

sudo?apt-get?install?libxml2-dev?

sudo?pecl?install?-n?solr-beta?

sudo?vi?/etc/php5/conf.d/solr.ini

//修改solr.ini

//添加以下语句

extension=solr.so

?

如果出现问题?make: not found, 需要执行 ?sudo apt-get install build-essential, 然后再执行?sudo?pecl?install?-n?solr-beta

?

根据下文实践的结果:

http://www.wijiti.com/help/37-jsolr/140-installing-apache-solr-php-extension

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template