时间:2021-07-01 10:21:17 帮助过:38人阅读
//安装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