[英]Installing Apache Solr on Windows WAMP Server
I tried to install Apache Solr on WAMP server (in Windows) and I succeeded but the problem was that I couldn't use the PHP Solr library on this environment. 我尝试在WAMP服务器上(在Windows中)安装Apache Solr,但成功了,但问题是我无法在这种环境下使用PHP Solr库。 The error I keep getting is:
我不断得到的错误是:
PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.4.12/ext/php_solr.dll' - %1 is not a valid Win32 application.\r\n in Unknown on line 0.
I've downloaded, included and activated the dll file containing the PHP Solr library but this error keeps comming. 我已经下载,包含并激活了包含PHP Solr库的dll文件,但是此错误不断出现。
PHP version: 5.4.12 PHP版本:5.4.12
Wampserver version: 2.4 Wampserver版本:2.4
C:\\wamp\\apache-solr-4.0.0
) C:\\wamp\\apache-solr-4.0.0
) C:\\wamp\\apache-solr-4.0.0\\example\\solr\\collection1
[optional] C:\\wamp\\apache-solr-4.0.0\\example\\solr\\collection1
[可选] cd c:\\wamp\\apache-solr-4.0.0\\example\\
cd c:\\wamp\\apache-solr-4.0.0\\example\\
Also, in Command Prompt; 另外,在命令提示符下; type the following command
java -jar start.jar
键入以下命令
java -jar start.jar
NOTE: Command Prompt should be kept open since Solr service is running.
注意:由于Solr服务正在运行,因此命令提示符应保持打开状态。 If you close it the service will stop.
如果关闭它,该服务将停止。
This will start jetty webserver and deploy Solr automatically 这将启动码头网络服务器并自动部署Solr
http://localhost:8983/solr
http://localhost:8983/solr
从浏览器访问Solr GUI
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.