• ubuntu下部署solr


    IKAnalyzer
    linliangyi2007.javaeye.com
    http://code.google.com/p/ik-analyzer

    reference:
    http://www.unixmen.com/linux-tutorials/985-how-to-install-java-run-time-environment-in-ubuntu-1004-lucid-lynx
    http://www.tc.umn.edu/~brams006/solr_ubuntu.html
    http://kmtk.cs.ait.ac.th/knowledge-center/how-to/solr-howto-install-solr-on-ubuntu-server-8.0.4
    http://happy-coding.com/install-sun-java6-jdk-on-ubuntu-10-04-lucid/
    http://blog.janjonas.net/2010-06-12/ubuntu_10_04-java-setup-sun-jdk
    1)install java enviroment on ubuntu 10.04
    <span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;"><strong>sudo add-apt-repository "deb http://archive.canonical.com/ lucid  partner"</strong></span></span>
    <span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><strong>sudo apt-get update<br /></strong></span></span><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><strong>sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts</strong></span></span><br />

    sudo apt-get install sun-java6-bin sun-java6-demo sun-java6-jdk
    sun-java6-jre

    sudo apt-get install ant

    sudo update-alternatives --config java

    2)install tomcat6
    sudo apt-get update

    sudo apt-get upgrade

    sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user
    tomcat6-docs tomcat6-examples
    重启tomcat
    sudo /etc/init.d/tomcat6 restart

    chmod -R 777 solr
    更改solrconfig.xml中的datadir为如下内容
    <dataDir>/var/lib/solr/data</dataDir>
    good article
    http://ocdevel.com/blog/installing-apachesolrmodule-ubuntu-1004

    配置schema.xml
    ~/下载/apache-solr-1.4.1/example/exampledocs$ sh ./post.sh ./clear_index.xml
    ~/下载/apache-solr-1.4.1/example/exampledocs$ sh ./post.sh ./book2.xml






  • 相关阅读:
    java 中静态变量和实例变量之间的区别
    java 中final 引用不可变,但是引用还是可以发生变化的
    java中char和Unicode之间的关系
    java 中终止内层循环的方法
    ssh 公钥免密码登陆
    关于Python 中unicode 转码的问题
    Python中Unicode码和非Unicode码引起的错误与格式转换
    第一次写博客,怎么写?
    zookeeper实现主-从结构的一般原理
    Python中Tuple的词源有趣探索
  • 原文地址:https://www.cnblogs.com/lexus/p/1780595.html
Copyright © 2020-2023  润新知