[英]Installing Solr on Server: Location?
好的,我一直在遵循有關在服務器上安裝Solr並通過Drupal進行訪問的教程 。 我的問題是我將Solr放在正確的位置嗎?
我知道我的Java工作正常,使用java -version
進行測試我知道我的Tomcat工作正常,並且service tomcat6 start: Starting tomcat6 [ OK ]
進行了測試
注意:盡管我無法通過http:website.com:8080訪問Tomcat(我保留了默認端口)
我當前的設置如下:
/usr/bin/java (Java installation - via yum)
/usr/share/tomcat6 (Tomcat installation - via yum)
/opt/solr (Solr Instance Installation - manually)
/opt/share/tomcat6/solr/drupal-solr (One Solr Core - manually)
/home/website1/public_html (just a site - I'd like to use Solr here)
/home/website2/public_html (just another site)
/home/website3/public_html (just another site)
如前所述,“ Solr能夠僅使用Solr應用程序的一個實例來提供多個搜索索引或核心 。每個核心都是獨立配置的,並且有一個配置文件來定義每個核心。”
假設我的網站1是否需要訪問Solr的核心之一。 該內核是否需要安裝在...
/home/website1/ (where my Solr Core should be?)
/home/website1/public_html (my website files - drupal install)
...正確? ...或者我可以將我的Solr以及其他所有內容都安裝在所有網站之上的根目錄下嗎?
您可以通過以下方式調試Tomcat:
curl localhost:8080
,則可能是來自8080端口的出站流量在Web服務器的安全組或IPTABLES中被阻止 http://askubuntu.com/questions/143785/what-port-is-tomcat-6-running-on
: http://askubuntu.com/questions/143785/what-port-is-tomcat-6-running-on
是的,您可以在任何地方安裝Solr。 您必須讓tomcat知道Solr的安裝位置,這是您所參考的文檔中的“ 步驟5:創建Solr上下文文件 ”。
假設您的Solr位於:
/ Solr的
假設您的多核名稱為site1,site2,site3,那么多核結構將如下所示:
/ Solr的
/ Solr的/ site1的
/ Solr的/站點2
/ Solr的/ site3
是的,每個內核都將擁有自己的conf目錄以及其唯一的配置文件,例如solrconfig.xml,schema.xml,同義詞.txt等。
現在,如果您的tomcat在端口8080上運行,並且假設您的IP為10.20.30.40,您將可以訪問以下地址的所有內核列表:10.20.30.40:8080/solr/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.