solr 修改端口号
生活随笔
收集整理的這篇文章主要介紹了
solr 修改端口号
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
2019獨角獸企業(yè)重金招聘Python工程師標(biāo)準(zhǔn)>>>
solr 端口號默認是:8983
修改端口號需修改兩個配置文件:
一、修改solr.xml
? ??solr-4.4.0\example\solr\solr.xml
<solr><solrcloud><str?name="host">${host:}</str><int?name="hostPort">${jetty.port:8983}</int><str?name="hostContext">${hostContext:solr}</str><int?name="zkClientTimeout">${zkClientTimeout:15000}</int><bool?name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool></solrcloud><shardHandlerFactory?name="shardHandlerFactory"class="HttpShardHandlerFactory"><int?name="socketTimeout">${socketTimeout:0}</int><int?name="connTimeout">${connTimeout:0}</int></shardHandlerFactory></solr>二、修改 ?jetty.xml
? ??solr-4.4.0\example\etc\jetty.xml
? ??
?<Call?name="addConnector"><Arg><New?class="org.eclipse.jetty.server.bio.SocketConnector"><Call?class="java.lang.System"?name="setProperty">?<Arg>log4j.configuration</Arg>?<Arg>etc/log4j.properties</Arg>?</Call><Set?name="host"><SystemProperty?name="jetty.host"?/></Set><Set?name="port"><SystemProperty?name="jetty.port"?default="8983"/></Set><Set?name="maxIdleTime">50000</Set><Set?name="lowResourceMaxIdleTime">1500</Set><Set?name="statsOn">false</Set></New></Arg></Call> ? 以上為簡單修改端口號的配置。
? ? ? ?
轉(zhuǎn)載于:https://my.oschina.net/lcdmusic/blog/425162
總結(jié)
以上是生活随笔為你收集整理的solr 修改端口号的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 城镇建设游戏《世外之地》3 月 7 日登
- 下一篇: 3DMax的OFusion插件的使用问题