multi-core solr deploy process(not complete)

根据/etc/tomcat6/Catalina/localhost/solr.xml中部署的solr.home的位置上创建
mkdir solrm
sudo chgrp mlzboy solrm
sudo chmod 777 solrm

change tomcat port:
Tomcat runs on the port defined $CATALINA_HOME/conf/server.xml,
configured by default to port 8080.
in ubuntu check location here /etc/tomcat6/server.xml

Configuring Solr Home with JNDI


A Tomcat
context fragments can be used to configure the JNDI property needed to
specify your Solr Home directory.

Just put a
context fragment file under $CATALINA_HOME/conf/Catalina/localhost that
looks something like this...

$ cat
/tomcat55/conf/Catalina/localhost/solr.xml

<Context docBase="/some/path/solr.war" debug="0" crossContext="true" >
   <Environment name="solr/home" type="java.lang.String" value="/my/solr/home" override="true" />
</Context>

A few things to keep in mind:

  • The
    "conf/Catalina/localhost" directory may not exist by default in your
    installation. You may have to create it.
  • "/some/path/solr.war" is the absolute path
    to where ever you want to keep the Solr war using the appropriate
    syntax for your Operating System. In Tomcat 5.5 and later, the war file
    must be stored outside of the webapps directory for this to work.
    Otherwise, this entire Context element is ignored.
  • "/my/solr/home" should be to where you
    have created your Solr Home directory, using the appropriate syntax for
    your Operating System.
  • Prior
    to Tomcat 5.5, a "path" attribute was required for Context elements
    (starting with 5.5, the path attribute must not be used except when
    statically defining a Context in server.xml, as it will be inferred from
    the Context fragment filename.


Enabling Longer Query Requests


If you try
to submit too long a GET query to Solr, then Tomcat will reject your
HTTP request on the grounds that the HTTP header is too large; symptoms
may include an HTTP 400 Bad Request error or (if you execute the query
in a web browser) a blank browser window.

If you need to enable longer queries, you can set the
maxHttpHeaderSize attribute on the HTTP Connector element in your
server.xml file. The default value is 4K. (See http://tomcat.apache.org/tomcat-5.5-doc/config/http.html)





posted on 2010-07-23 18:58  lexus 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/lexus/archive/2010/07/23/1783992.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值