4 Make a new context for Solr in Tomcat6

-Create a new file named solr.xml under /var/lib/tomcat6/conf/Catalina/localhost by the following command:
vi /var/lib/tomcat6/conf/Catalina/localhost/solr.xml
-And put the following xml code into the file

-Restart tomcat 6 by the following command
service tomcat6 restart or /etc/init.d/tomcat6 restart